sql-gen
sql-gen copied to clipboard
Fix : dependencies not detected when field type is Option<T>
sql-gen has a function detect_dependencies in DbSetsFsWriter which automatically includes custom types defined elsewhere when they are use by each model generated.
However, if the typeof the dependencies is enclosed in an Option enum, the dependency is not detected.
This change fixes that.