1
0
mirror of synced 2024-12-13 22:56:04 +03:00
doctrine2/manual/docs/Basic Components - Record - Getting record state.php

8 lines
548 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
Every Doctrine_Record has a state. First of all record can be transient or persistent.
Every record that is retrieved from database is persistent and every newly created record is transient.
If a Doctrine_Record is retrieved from database but the only loaded property is its primary key, then this record
has a state called proxy.
<br /><br />
Every transient and persistent Doctrine_Record is either clean or dirty. Doctrine_Record is clean when none of its properties are changed and
dirty when atleast one of its properties has changed.