public function votedown($voter)
    {
        //first check if we have voted up if yes then just remove that
        if (
            $voteup = $this->voteups->getQuery(true)
                                    ->disableChain()
                                    ->voter($voter)
                                    ->fetch()
        ) {
            $voteup->delete();
        } else {
            //find ore create a voteup
            $votedown = $this->votedowns
                             ->findOrAddNew(array(
                               'voter' => $voter,
                               'votee' => $this, ));
        }
    }
public function votedown($voter)
    {
        //first check if we have voted up if yes then just remove that
        if (
            $voteup = $this->voteups->getQuery(true)
                                    ->disableChain()
                                    ->voter($voter)
                                    ->fetch()
        ) {
            $voteup->delete();
        } else {
            //find ore create a voteup
            $votedown = $this->votedowns
                             ->findOrAddNew(array(
                               'voter' => $voter,
                               'votee' => $this, ));
        }
    }
public function votedown ( $ voter ) { //first check if we have voted up if yes then just remove that if ( $ voteup = $ this -> voteups -> getQuery ( true ) -> disableChain ( ) -> voter ( $ voter ) -> fetch ( ) ) { $ voteup -> delete ( ) ; } else { //find ore create a voteup $ votedown = $ this -> votedowns -> findOrAddNew ( array ( 'voter' => $ voter , 'votee' => $ this , ) ) ; } }
Vote down an entity.

@param ComPeopleDomainEntityPerson $voter The voter
Vote down an entity .