Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-2345

convertObjectParameterToScalarValue() raises a notice

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: ORM
    • Labels:
      None

      Description

      In Doctrine\ORM\AbstractQuery.php, the method convertObjectParameterToScalarValue() can raise a Notice.
      This code:

      $value = $values[$class->getSingleIdentifierFieldName()];
      

      should be changed in this one:

      if (isset($values[$class->getSingleIdentifierFieldName()])) {
          $value = $values[$class->getSingleIdentifierFieldName()];
      }
      

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Massimiliano Arione
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: