mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-2345: convertObjectParameterToScalarValue() raises a notice #2945
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 (Mar 12, 2013).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user garak:
In
Doctrine\ORM\AbstractQuery.php, the methodconvertObjectParameterToScalarValue()can raise a Notice.This code:
should be changed in this one:
@doctrinebot commented on GitHub (Mar 12, 2013):
Comment created by @ocramius:
[~garak] the current DQL implementation doesn't allow you to bind composite key identifiers as parameters, thus you will never reach that piece of code.
A test would be needed for this case.
@doctrinebot commented on GitHub (Mar 12, 2013):
Comment created by garak:
Unfortunately, I'm not really a Doctrine guru.
I can tell you that I'm getting that notice, using Sortable behavior with Symfony2.
This is a partial error stack:
@doctrinebot commented on GitHub (Mar 12, 2013):
Comment created by @ocramius:
[~garak] having a composite primary key?
@doctrinebot commented on GitHub (Mar 12, 2013):
Comment created by garak:
Nope, just a plain "id".
@doctrinebot commented on GitHub (May 1, 2013):
Comment created by @beberlei:
Fixed in 2.4
@doctrinebot commented on GitHub (May 1, 2013):
Issue was closed with resolution "Fixed"