Fire/Sql/Collection.php
private function _getObject($id, $revision = null)
    {
        if ($revision === null) {
            $select = Statement::get(
                'GET_CURRENT_OBJECT',
                [
                    '@collection' => $this->_name,
                    '@id' => $this->_connector->quote($id)
                ]
            );
            $record = $this->_connector->query($select)->fetch();
            if ($record) {
                return json_decode($record['obj']);
            }
        }
        return null;
    }
private function _getObject($id, $revision = null)
    {
        if ($revision === null) {
            $select = Statement::get(
                'GET_CURRENT_OBJECT',
                [
                    '@collection' => $this->_name,
                    '@id' => $this->_connector->quote($id)
                ]
            );
            $record = $this->_connector->query($select)->fetch();
            if ($record) {
                return json_decode($record['obj']);
            }
        }
        return null;
    }
private function _getObject ( $ id , $ revision = null ) { if ( $ revision === null ) { $ select = Statement :: get ( 'GET_CURRENT_OBJECT' , [ '@collection' => $ this -> _name , '@id' => $ this -> _connector -> quote ( $ id ) ] ) ; $ record = $ this -> _connector -> query ( $ select ) -> fetch ( ) ; if ( $ record ) { return json_decode ( $ record [ 'obj' ] ) ; } } return null ; }
Returns an object in the collection. If the revision isn't provided, the
latest revision of the object will be returned.
@param string $id
@param int $revision
@return object|null
Returns an object in the collection . If the revision isn t provided the latest revision of the object will be returned .