public function save() { if ($this->simple != 't' && $this->simple != 'f') { $this->simple = $this->phpBoolToPostgres($this->simple); } parent::save(); }