src/AbstractMapper.php
public function findById($entityId)
    {
        $this->adapter->select($this->entityTable, "id = {$entityId}");

        if (($data = $this->adapter->fetch()) !== false) {
            return $this->createEntity($data);
        }

        return null;
    }
public function findById($entityId)
    {
        $this->adapter->select($this->entityTable, "id = {$entityId}");

        if (($data = $this->adapter->fetch()) !== false) {
            return $this->createEntity($data);
        }

        return null;
    }
public function findById ( $ entityId ) { $ this -> adapter -> select ( $ this -> entityTable , "id = {$entityId}" ) ; if ( ( $ data = $ this -> adapter -> fetch ( ) ) !== false ) { return $ this -> createEntity ( $ data ) ; } return null ; }
Find an entity by its ID
@param $entityId
@return mixed|null
Find an entity by its ID