コード例 #1
0
 public function delete(AbstractFileEntity $entity)
 {
     return $this->deleteWhere(['id' => $entity->getId(), 'record_type' => $entity->getRecordType()]);
 }
コード例 #2
0
 public function loadFile(AbstractFileEntity $fileEntity)
 {
     return $this->load($fileEntity->getPath() . DIRECTORY_SEPARATOR . $fileEntity->getId());
 }