public function fetchEntityById($id)
    {
        $select = $this->tableGateway->getSql()->select();
        $select->where->equalTo($this->tableGateway->getPrimaryKey(), $id);

        return $this->tableGateway->fetchEntity($select);
    }
public function fetchEntityById($id)
    {
        $select = $this->tableGateway->getSql()->select();
        $select->where->equalTo($this->tableGateway->getPrimaryKey(), $id);

        return $this->tableGateway->fetchEntity($select);
    }
public function fetchEntityById ( $ id ) { $ select = $ this -> tableGateway -> getSql ( ) -> select ( ) ; $ select -> where -> equalTo ( $ this -> tableGateway -> getPrimaryKey ( ) , $ id ) ; return $ this -> tableGateway -> fetchEntity ( $ select ) ; }
Fetch entity by id

@param $id

@return mixed
Fetch entity by id