1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/manual/codes/Basic Components - Session - Flushing the session.php
2006-07-23 21:08:06 +00:00

12 lines
199 B
PHP

<?php
$user = new User();
$user->name = "Jack";
$group = $session->create("Group");
$group->name = "Drinking Club";
// saves all the changed objects into database
$session->flush();
?>