1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/manual/docs/Working with objects - Component overview - Record - Checking Existence.php
2007-04-13 21:49:11 +00:00

12 lines
151 B
PHP

<code type="php">
$record = new User();
$record->exists(); // false
$record->name = 'someone';
$record->save();
$record->exists(); // true
</code>