public function migrate($id) { $entity = \EntityDriver::get($id); $coder = new \Cms\Library\Helpers\Coder\EntitiesCoder(); $coder->migrateEntity($entity, \Input::get('migration')); return \Redirect::route('dev.entities.database', $id); }
public function deleteAttribute($attribute) { \Event::fire('entity_attributes.deleted', $attribute); $attribute->delete(); $coder = new \Cms\Library\Helpers\Coder\EntitiesCoder(); $coder->codeEntities(); }
public function onDelete($entity) { $coder = new \Cms\Library\Helpers\Coder\EntitiesCoder(); try { $coder->migrateEntity($entity, 'delete'); } catch (Exception $e) { } $coder->codeEntities(); }
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(); }