1
0
mirror of synced 2025-01-29 19:41:45 +03:00
This commit is contained in:
zYne 2007-07-05 16:47:31 +00:00
parent fcee65cb86
commit 7fef24f7a6

View File

@ -192,6 +192,18 @@ Sometimes you may want to get a copy of your object (a new object with all prope
$copy = $user->copy();
</code>
++++ Saving a blank record
By default Doctrine doesn't execute when save() is being called on an unmodified record. There might be situations where you want to force-insert the record even if it has not been modified. This can be achieved by assigning the state of the object to Doctrine_Recort::STATE_TDIRTY.
<code type="php">
$user = new User();
$user->state('TDIRTY');
$user->save();
$user->id; // 1
</code>
++++ Serializing