1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/codes/Working with objects - Component overview - Collection - Deleting collection.php

8 lines
123 B
PHP
Raw Normal View History

2006-07-24 01:08:06 +04:00
<?php
// delete all users with name 'John'
2006-08-17 13:42:18 +04:00
$users = $table->findByDql("name LIKE '%John%'");
2006-07-24 01:08:06 +04:00
$users->delete();
?>