public function find($primaryKey)
    {
        $where = array(
            $this->_primary => $primaryKey
        );

        $qp = $this->_fetch($where);
        $row = $this->_fetchRow($qp['query'], $qp['params']);
        $className = $this->_rowClass;
        $class = new $className($this);

        if (!$row) {
            return false;
        }

        $class->setData($row);

        return $class;
    }
public function find($primaryKey)
    {
        $where = array(
            $this->_primary => $primaryKey
        );

        $qp = $this->_fetch($where);
        $row = $this->_fetchRow($qp['query'], $qp['params']);
        $className = $this->_rowClass;
        $class = new $className($this);

        if (!$row) {
            return false;
        }

        $class->setData($row);

        return $class;
    }
public function find ( $ primaryKey ) { $ where = array ( $ this -> _primary => $ primaryKey ) ; $ qp = $ this -> _fetch ( $ where ) ; $ row = $ this -> _fetchRow ( $ qp [ 'query' ] , $ qp [ 'params' ] ) ; $ className = $ this -> _rowClass ; $ class = new $ className ( $ this ) ; if ( ! $ row ) { return false ; } $ class -> setData ( $ row ) ; return $ class ; }
Find a row by primary key
@param mixed $primaryKey Primary key value
@return \Core\Orm\RowGateway | bool
Find a row by primary key