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