/** * {@inheritdoc} * * After a table update, the TableRegistry should be cleared in order to prevent issues with * table schema stored in Table objects having columns that might have been renamed or removed during * the update process. */ public function update() { parent::update(); TableRegistry::clear(); }
/** * Updates a table from the object instance. * * @return mixed */ public function update() { $this->table->update(); return $this; }