mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
The "nullable" column option is not supported, setting it is deprecated; #6276
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 @JoppeDC on GitHub (Aug 1, 2019).
Originally assigned to: @lcobucci on GitHub.
Support Question
The last few weeks, i've started getting deprecation errors using doctrine. The error seems to be thrown by Doctrine/dbal, but seems related to this bundle.
I've been looking for an alternative, but can't seem to find it. The Column in doctrine/dbal has the notNull option. The issue was first posted in this repo, but as it turns out that was not correct.
@SenseException commented on GitHub (Aug 5, 2019):
Hi @JoppeDC, can you please post the error message and, if available, an exception trace? Can you please put the mentioned annotation(s) in doctrine/annotations#275 too?
@JoppeDC commented on GitHub (Aug 6, 2019):
@SenseException I've added the stacktrace and error message.
@SenseException commented on GitHub (Aug 14, 2019):
Can you please put the annotations into this issue too?
@JoppeDC commented on GitHub (Aug 14, 2019):
@SenseException Here you go. It happens on any field using the
nullableoption.@SenseException commented on GitHub (Aug 26, 2019):
I can't find anything in the annotation example you show above. BTW: is
$$amounta typo?Every SchemaManager is handling its own array keys creating options with the proper array key
notnull. This one should also usually apprear inTable::addColumn()instead ofnullablein a simple installation.Can you please debug where the
nullablekey is coming from?SchemaTool.php:363is dispatching an event and it seems that there's aStatisticsListenerof the JMSJobQueueBundle that still usesnullablein current versions: https://github.com/schmittjoh/JMSJobQueueBundle/blob/2.0.1/Entity/Listener/StatisticsListener.phpIt looks like they fixed it in master. I'm pretty sure that is the source of that problem.
@lcobucci commented on GitHub (Oct 2, 2019):
Closing here as per @SenseException's comment.