getTable(); } public function copy(IModelFeature $from): static { $data = $from->getAttributeKeys(); foreach ($data as $key) { $this->$key = $from->$key; } return $this; } public function getAttributeKeys(): array { return array_values(array_unique(array_merge(array_keys($this->attributesToArray()), $this->hidden))); } public function isNotSavedModel(): bool { return data_get($this, ColumnName::ID) === null; } protected $dispatchesEvents = [ 'created' => CreatedEvent::class, 'updating' => UpdatingEvent::class, 'deleted' => DeletedEvent::class, ]; }