Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function lastSelection(ReadSelectionBuilder $selection)
 {
     $resultSet = $this->readSelection($selection->reverseOrder()->limit(1));
     if (!$resultSet->hasRows()) {
         return null;
     }
     return $this->createExisting($resultSet->fetchAssoc(), $selection);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function offset($offset)
 {
     $select = new ReadSelectionBuilder($this);
     return $select->offset($offset);
 }