public function importRawData($data) { $wasNewRecord = $this->isNewRecord(); parent::importRawData($data); $this->captureUniqueIdentifier(); if ($wasNewRecord && !$this->isNewRecord()) { $this->onLoaded(); } }