mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #83] [CLOSED] fixes DDC-1150 #7690
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?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/83
Author: @ghost
Created: 7/11/2011
Status: ❌ Closed
Base:
master← Head:DDC-1150📝 Commits (1)
27c9b73fixes DDC-1150📊 Changes
2 files changed (+28 additions, -0 deletions)
View changed files
📝
lib/Doctrine/ORM/Persisters/BasicEntityPersister.php(+4 -0)📝
tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php(+24 -0)📄 Description
Hey guys,
I got annoyed by this bug until I found it already had an issue. It is a bug when using an array as value for a association field in a
find*By()method.As @beberlei pointed out, we could just assume that the value is a
PDO::PARAM_STR.Searching through the ORM Tools, I found that
SchemaToolchecks the type of an association field (ifstringordecimal) even if I can't specify a column type to a property that is an association (maybe just hacking like inSchemaToolTest- not sure, am I correct?).That it's. Maybe not the best thing from the database POV but at least make the API more consistent (like
setParameterwith an array value parameter).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.