mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1642: Inserting a new entity with a custom mapping type does not trigger requireSQLConversion when column name is defined #2062
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 (Feb 9, 2012).
Jira issue originally created by user ruimarinho:
When a new entity is created with a custom type mapping (e.g. "ip") and it requires an SQL conversion defined on the type itself, the convertToDatabaseValueSQL function is not called.
Example mapping:
ipAddress: { type: ip, nullable: true, column: ip_address }
If the column attribute is not defined, everything works as expected. Updating an entity is also unaffected (_updateTable works fine).
Attached is a patch that fixes this.
@doctrinebot commented on GitHub (Feb 13, 2012):
Comment created by @guilhermeblanco:
Fixed by merge:
38d725ce32@doctrinebot commented on GitHub (Feb 13, 2012):
Issue was closed with resolution "Fixed"
@doctrinebot commented on GitHub (Dec 13, 2015):
Imported 1 attachments from Jira into https://gist.github.com/05c66036ecd73229d498