public function save() { if (!PaginaBD::find($this)) { PaginaBD::add($this); } else { PaginaBD::update(this); } }