Open jdgrieco opened 11 years ago
Heya @jdgrieco, could you open a Pull Request with your patch?
@jdgrieco @willdurand got the same issue today and fixed it ;)
the issue is here : https://github.com/propelorm/Propel/blob/master/generator/lib/reverse/mssql/MssqlSchemaParser.php#L182
the $name
is undefined and never fetched.
I will provide a PR today
I recently started to use Propel and I think I found a bug:
Reverse engineering on MSSQL database via dblib doesn't add FK name in foreign-key tag and a table with 2 or more FKs to different tables is incorrect mapped:
is mapped to XML:
and a correct XML shoud be:
So I modify MssqlSchemaParser's addForeignKeys method, see https://gist.github.com/3667854
This modification correct this issue, and, as side effect, migrations works too!