/** * Tasks after insertion */ protected function after() { parent::after(); if (Cache::is($this->table() . $this->NewObject->id())) { Cache::delete($this->table() . $this->NewObject->id()); } }
/** * Set array * @param string $key * @param mixed $value * @throws \InvalidArgumentException * @throws \RuntimeException */ public function set($key, $value) { parent::set($key, $value); if ($key == self::GEOHASHES) { $this->setMinMaxFromGeohashes($value); } }
/** * Synchronize */ public function synchronize() { parent::synchronize(); $this->ensureAllNumericValues(); }
/** * Synchronize */ public function synchronize() { parent::synchronize(); $this->ensureNullIfEmpty(self::IS_NIGHT, true); $this->ensureAllNumericValues(); $this->synchronizeObjects(); }