1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/manual/codes/Working with objects - Component overview - Connection - Flushing the connection.php
2007-02-23 20:57:38 +00:00

12 lines
193 B
PHP

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