base_coin)) $this->base_coin = null; else if ($this->base_coin == 'BTC') $this->base_coin = null; else if (strpos($this->name, $this->base_coin) === false) { $parts = explode(' ', $this->name); $this->name = trim($parts[0].' '.$this->base_coin); } if (empty($this->message)) $this->message = null; return parent::save($runValidation, $attributes); } }