1
0
mirror of synced 2024-12-15 15:46:02 +03:00
doctrine2/manual/codes/Basic Components - Collection - Deleting collection.php

8 lines
123 B
PHP

<?php
// delete all users with name 'John'
$users = $table->findByDql("name LIKE '%John%'");
$users->delete();
?>