Doctrine 1
  1. Doctrine 1
  2. DC-1044

record Line 2430 Unlink method Warning: Illegal offset type in sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php on line 2459

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: Record
    • Labels:
      None

      Description

      When you have a new unpersisted object and you call a method to a referenced object - when calling the unlink() method on referenced object the above error is called.

      Warning: Illegal offset type in sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php on line 2459

      eg

      $foo = new foo();

      $foo->getBar(); This call will bind a reference of Bar against the foo object.

      $foo->unlink('bar');

      As no objects are yet persisted, the unlink method tries to match ids on the objects that do not exist.

        Activity

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Kyle Clarke
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: