public function setData($data, $modified = true) { $result = parent::setData($data, $modified); if (isset($data['container'])) { $this->setAdapter(); } return $result; }