예제 #1
0
파일: EntityDriver.php 프로젝트: joadr/cms
 public function deleteAttribute($attribute)
 {
     \Event::fire('entity_attributes.deleted', $attribute);
     $attribute->delete();
     $coder = new \Cms\Library\Helpers\Coder\EntitiesCoder();
     $coder->codeEntities();
 }
예제 #2
0
 public function onDelete($entity)
 {
     $coder = new \Cms\Library\Helpers\Coder\EntitiesCoder();
     try {
         $coder->migrateEntity($entity, 'delete');
     } catch (Exception $e) {
     }
     $coder->codeEntities();
 }
예제 #3
0
 public function onDelete($entity_attribute)
 {
     $entity = \EntityDriver::get($entity_attribute->entity_id);
     $migration = 'attributes.' . $entity_attribute->name . '.down';
     $coder = new \Cms\Library\Helpers\Coder\EntitiesCoder();
     try {
         $coder->migrateEntity($entity, $migration);
     } catch (\Exception $e) {
     }
     $coder->codeEntities();
 }