/** * Tasks after insertion */ protected function after() { parent::after(); if (Cache::is($this->table() . $this->NewObject->id())) { Cache::delete($this->table() . $this->NewObject->id()); } }
/** * Synchronize */ public function synchronize() { parent::synchronize(); $this->ensureAllNumericValues(); $this->synchronizeObjects(); }
/** * Synchronize internal models */ public function synchronize() { parent::synchronize(); $this->ensureAllNumericValues(); $this->synchronizeStartAndEndpoint(); $this->synchronizeBoundaries(); if (!$this->hasCorrectedElevations()) { $this->set(self::ELEVATIONS_SOURCE, ''); } }