public function find($identity)
    {
        if( !$this->primaryKey ) {
            throw new LogicException('No primary key!');
        }
        return $this->select()
                ->where($this->primaryKey, $identity)
                ->limit(1)
                ->query()
                ->fetchRow();
    }
public function find($identity)
    {
        if( !$this->primaryKey ) {
            throw new LogicException('No primary key!');
        }
        return $this->select()
                ->where($this->primaryKey, $identity)
                ->limit(1)
                ->query()
                ->fetchRow();
    }
public function find ( $ identity ) { if ( ! $ this -> primaryKey ) { throw new LogicException ( 'No primary key!' ) ; } return $ this -> select ( ) -> where ( $ this -> primaryKey , $ identity ) -> limit ( 1 ) -> query ( ) -> fetchRow ( ) ; }
Find a record by primary key

@param mixed $identity
@return Row
@throws LogicException
Find a record by primary key