diff --git a/manual/new/docs/en/working-with-objects/component-overview/record.txt b/manual/new/docs/en/working-with-objects/component-overview/record.txt index 4bfd1a67e..7cabedc1d 100644 --- a/manual/new/docs/en/working-with-objects/component-overview/record.txt +++ b/manual/new/docs/en/working-with-objects/component-overview/record.txt @@ -192,6 +192,18 @@ Sometimes you may want to get a copy of your object (a new object with all prope $copy = $user->copy(); +++++ 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. + + +$user = new User(); +$user->state('TDIRTY'); +$user->save(); + +$user->id; // 1 + + ++++ Serializing