public function __construct(DriverAdapter $adapter) { $this->table = Nibii::getModelTable($this); $this->adapter = $adapter; foreach ($this->behaviours as $behaviour) { $behaviourInstance = $this->getComponentInstance($behaviour); $behaviourInstance->setModel($this); } }