Beispiel #1
0
 /**
  * @param string $tableName
  */
 private function initTableBehaviors($tableName)
 {
     $behaviors = $this->schema->getTableBehaviors($tableName);
     foreach ($behaviors as $behaviorDefinition) {
         $behavior = $this->getBehaviorInstance($behaviorDefinition);
         $this->getEventDispatcher()->addSubscriber($behavior);
         if (!empty($behaviorDefinition['config'])) {
             $behavior->setTableConfig($tableName, $behaviorDefinition['config']);
         }
     }
 }