예제 #1
0
파일: Table.php 프로젝트: jivoo/jivoo
 /**
  * {@inheritdoc}
  */
 public function lastSelection(ReadSelectionBuilder $selection)
 {
     $resultSet = $this->readSelection($selection->reverseOrder()->limit(1));
     if (!$resultSet->hasRows()) {
         return null;
     }
     return $this->createExisting($resultSet->fetchAssoc(), $selection);
 }