public function Save() { if ($this->id > 0) { $this->Recalculate(); } if (is_null($this->_key)) { $this->created = time(); } $this->updated = time(); parent::Save(); PostCat::Queue($this->id); }