public function setTable(Table $table)
    {
        $this->_table = $table;
        $eventManager = $table->getEventManager();
        if ($eventManager !== null) {
            $this->setEventManager($eventManager);
        }
    }
public function setTable(Table $table)
    {
        $this->_table = $table;
        $eventManager = $table->getEventManager();
        if ($eventManager !== null) {
            $this->setEventManager($eventManager);
        }
    }
public function setTable ( Table $ table ) { $ this -> _table = $ table ; $ eventManager = $ table -> getEventManager ( ) ; if ( $ eventManager !== null ) { $ this -> setEventManager ( $ eventManager ) ; } }
Attaches a table instance to this registry.

@param \Cake\ORM\Table $table The table this registry is attached to.
@return void
Attaches a table instance to this registry .