public function save() { if (!$this->objectKey) { $this->objectKey = $this->getObjectKey(); } return parent::save(); }