function Update(\DBAL\DataSource\SQLDataSource $dataSource) { $roots = $this->getRoots($dataSource); foreach ($roots as $root) { $src = new \DBAL\DataSource\SQLDataSource(array($root)); $it = new \DBAL\Iterator\DataNodeIteratorIterator(new \DBAL\Iterator\DataNodeIterator($root)); foreach ($it as $control) { $src[] = $control; } parent::Update($src); } }
function Fill(SqlDataSource $dataSource) { $this->Database = $dataSource->Database; return parent::Fill($dataSource); }