src/Oss2/Doctrine2/WithPreferences.php
public function expungePreferences()
    {
        return \D2EM::createQuery( 'delete \\Entities\\' . $this->_getPreferenceClassName() . ' up where up.' . $this->_getShortClassname() . ' = ?1' )
                     ->setParameter( 1, $this )
                     ->execute();
    }
public function expungePreferences()
    {
        return \D2EM::createQuery( 'delete \\Entities\\' . $this->_getPreferenceClassName() . ' up where up.' . $this->_getShortClassname() . ' = ?1' )
                     ->setParameter( 1, $this )
                     ->execute();
    }
public function expungePreferences ( ) { return \ D2EM :: createQuery ( 'delete \\Entities\\' . $ this -> _getPreferenceClassName ( ) . ' up where up.' . $ this -> _getShortClassname ( ) . ' = ?1' ) -> setParameter ( 1 , $ this ) -> execute ( ) ; }
Deletes all preferences.

@param void
@return int The number of preferences deleted
Deletes all preferences .