public function setEntryShapeAttribute($shape) { if ($this->type !== 'art') { return; } $this->extra_options['shape'] = $shape; }