<?php
 
 
require_once '../lumine/LumineConfiguration.php';
 
$conf = new LumineConfiguration("lumine-conf.xml");
 
 
/* show up whats happen */
 
// LumineLog::setLevel(4);
 
// LumineLog::setOutput('browser');
 
 
Util::import("com.domain.classes.Person");
 
 
/** 
 
* the on delete and on update in car relationship mapping is to cascade, so
 
* when deleting a person will automatically delete the cars
 
*/
 
$person = new Person;
 
if( $person->get( 10 ) > 0) {
 
    $person->delete();
 
}
 
 
?>
 
 |