Ejemplo n.º 1
0
 /**
  * Deletes all preferences.
  *
  * @param void
  * @return int The number of preferences deleted
  */
 public function expungePreferences()
 {
     return \D2EM::createQuery('delete \\Entities\\' . $this->_getPreferenceClassName() . ' up where up.' . $this->_getShortClassname() . ' = ?1')->setParameter(1, $this)->execute();
 }