public function update(Book $book) { $this->_insertCategory($book); $this->_InsertTags($book); $data = $book->toArray(); return parent::_update($this->_pkey, $data); }