mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
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?
Original Pull Request: https://github.com/doctrine/orm/pull/8439
State: closed
Merged: Yes
This is simple implementation of idea outlined in #7939. During completion step of a field mapping completion or association mapping completion it looks for typed property and, when existent, uses it to determine default for
type,targetEntityandnullable(in fields andjoinTable).I have added simple tests covering all cases I found.
I am not a great fan of encapsulating code in
PHP_VERSION_ID >= 70400, but at the time of writing got no better idea.I couldn't get master branch to work locally and that's the only reason why I target '2.9.x' (Composer has problem resolving doctrine/dbal).
This is my first PR to Doctrine project, so if anything is done wrong please let me know and I will do my best to fix it :)