2006-07-24 01:08:06 +04:00
|
|
|
<?php
|
2006-08-22 02:51:27 +04:00
|
|
|
$table = $conn->getTable("User");
|
2006-07-24 01:08:06 +04:00
|
|
|
|
2006-08-17 13:42:18 +04:00
|
|
|
$user = $table->find(2);
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
// deletes user and all related composite objects
|
2006-08-17 13:42:18 +04:00
|
|
|
if($user !== false)
|
|
|
|
$user->delete();
|
2006-07-24 01:08:06 +04:00
|
|
|
|
|
|
|
|
|
|
|
$users = $table->findAll();
|
|
|
|
|
|
|
|
|
|
|
|
// delete all users and their related composite objects
|
|
|
|
$users->delete();
|
|
|
|
?>
|