1
0
mirror of synced 2024-12-16 08:06:02 +03:00
doctrine2/manual/docs/Working with objects - Component overview - Record - Checking Existence.php

12 lines
151 B
PHP
Raw Normal View History

2007-04-14 01:49:11 +04:00
<code type="php">
$record = new User();
$record->exists(); // false
$record->name = 'someone';
$record->save();
$record->exists(); // true
</code>