Cake\ORM\Table::removeBehavior PHP Метод

removeBehavior() публичный Метод

Example: Remove a behavior from this table. $this->removeBehavior('Tree');
См. также: Cake\ORM\Behavior
public removeBehavior ( string $name ) : void
$name string The alias that the behavior was added with.
Результат void
    public function removeBehavior($name)
    {
        $this->_behaviors->unload($name);
    }

Usage Example

 /**
  * tear down
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     $this->Noticias->removeBehavior("CakePtbr.AjusteData");
     unset($this->Noticias, $this->Noticias);
     TableRegistry::clear();
 }
All Usage Examples Of Cake\ORM\Table::removeBehavior