CraftyShadow/EqualNestBehavior — Issue #1: Cannot save objects on a read-only model 
Author: scp
Created: 2011-12-02 14:12:01+00:00
State: open

With:

And:

$user = new User();
$user->save();

$friend = new User();
$friend->save();

$user->addFriend($friend);
$user->save();

I see: "Cannot save objects on a read-only model" -- vendor/propel/runtime/lib/collection/PropelObjectCollection.php at line 28

Backtrace:

1:
at PropelObjectCollection ->save ()
in Model/om/BaseUser.php at line 2430 -+
2:
at BaseUser ->processEqualNestQueries (object(DebugPDO))
in Model/om/BaseUser.php at line 1049 -+
3:
at BaseUser ->save ()
in mycode.php at line 679 -

This would be really useful if it was working - I saw a message here: https://github.com/propelorm/Propel/issues/127 that your Behavior might have been broken since Propel 1.6.2?