1
0
mirror of synced 2025-01-17 22:11:41 +03:00
This commit is contained in:
zYne 2007-07-18 19:54:26 +00:00
parent ec7a9a3c1e
commit bd2cb48520

View File

@ -204,6 +204,16 @@ $user->save();
$user->id; // 1
</code>
++++ Mapping custom values
There might be situations where you want to map custom values to records. For example values that depend on some outer sources and you only want these values to be availible at runtime not persisting those values into database. This can be achieved as follows:
<code type="php">
$user->mapValue('isRegistered', true);
$user->isRegistered; // true
</code>
++++ Serializing