mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-574: PHP Mapping Driver generates notnull => false, instead of nullable => true #708
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (May 6, 2010).
Originally assigned to: @jwage on GitHub.
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:
and I got something like:
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)
@doctrinebot commented on GitHub (May 10, 2010):
Comment created by shurakai:
Hi Andy,
do you think you could add such a .sql testfile for us? I will look into this shortly afterwards.
Thanks for helping!
@doctrinebot commented on GitHub (May 11, 2010):
Comment created by andyajadeh:
this is my table I imported. thanks.
@doctrinebot commented on GitHub (May 14, 2010):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/eb82bf9d148fbb5a3189