I have in my controller:
$dataSource = $this->getDataSource(); // line 141
$dataSource->begin($this);
if(...){
$dataSource->commit($this);
}else{
$dataSource->rollback($this);
}
but not works, I get the following error:
Fatal error: Call to undefined method AppusuariosController::getDataSource() in C:...\app\controllers\appusuarios_controller.php on line 141
I have to import getDataSource() ?