2006-07-24 01:08:06 +04:00
|
|
|
Sometimes you may want to serialize your record objects (possibly for caching purposes). Records can be serialized,
|
|
|
|
but remember: Doctrine cleans all relations, before doing this. So remember to persist your objects into database before serializing them.
|
2007-04-13 00:52:30 +04:00
|
|
|
|
|
|
|
<code type="php">
|
|
|
|
$string = serialize($user);
|
|
|
|
|
|
|
|
$user = unserialize($string);
|
|
|
|
</code>
|