Example #1
0
 /**
  * deletes record from collection
  *
  * @param  Record $record
  * @throws CollectionException
  * @return bool
  */
 public function deleteRecord(Record $record)
 {
     if (!$this->has($record)) {
         $id = $record->getInternalId();
         throw new CollectionException("{$id} is not in collection!");
     }
     $this->table->getRecordManager()->scheduleDelete($record);
     return $this->unlinkRecord($record);
 }
Example #2
0
 /**
  * @return RecordManager
  */
 public function getRecordManager()
 {
     return $this->_table->getRecordManager();
 }