Jira issue originally created by user andyajadeh:
I tried to import a schema from postgresql database, to a php file mapping.
I had created that database using doctrine schema tool with annotation mapping.
to import it, I used:
php doctrine orm:convert-mapping --from-database php ./php
and I got something like:
'name' => 'mdp',
'id' => true,
'fieldName' => 'id',
'columnName' => 'id',
'type' => 'integer',
'fieldName' => 'rrn',
'columnName' => 'rrn',
'type' => 'string',
'length' => 50,
'fixed' => false,
'notnull' => false,
When I try to drop & create the database using this php mapping, the "notnull => false" doesn't work.
The column definition in the database is still NOT NULL. But when I add "nullable => true", it works like I expected (DEFAULT NULL::character varying)
Comment created by shurakai:
do you think you could add such a .sql testfile for us? I will look into this shortly afterwards.
Thanks for helping!
Comment created by andyajadeh:
this is my table I imported. thanks.
Issue was closed with resolution "Fixed"
Imported 1 attachments from Jira into https://gist.github.com/eb82bf9d148fbb5a3189