Ejemplo n.º 1
0
 /**
  * Remove this user and all its objects
  * @return bool
  */
 function delete()
 {
     // First, remove all owned objects
     while ($objects = Entity::get(array('owner' => $this->getUUID(), array(), 100))) {
         foreach ($objects as $object) {
             $object->delete();
         }
     }
     return parent::delete();
 }