/** * 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); }
/** * @return RecordManager */ public function getRecordManager() { return $this->_table->getRecordManager(); }