Skip to content
Snippets Groups Projects

Test2

Merged Laurent Lecluse requested to merge test2 into master
18 files
+ 515
227
Compare changes
  • Side-by-side
  • Inline
Files
18
+ 17
4
@@ -8,15 +8,28 @@
*/
//throw new \Exception('test');
use Application\Constants;
use Application\Entity\Db\Intervenant;
use Application\Entity\Db\VolumeHoraire;
use Application\Service\WorkflowService;
use Doctrine\ORM\EntityManager;
/** @var WorkflowService $w */
$w = $sl->get(WorkflowService::class);
/** @var EntityManager $em */
$em = $sl->get(Constants::BDD);
$i = new Intervenant();
/** @var VolumeHoraire $vh */
$vh = $em->getRepository(VolumeHoraire::class)->find(30176);
//$w->calculerTableauxBord(['workflow','formule'], $i);
$em->beginTransaction();
$em->beginTransaction();
$vh->setHeures(26);
$em->flush($vh);
$em->commit();
var_dump($em->getConnection()->fetchAll('select heures from volume_horaire where id = 30176'));
$em->rollback();
var_dump($em->getConnection()->fetchAll('select heures from volume_horaire where id = 30176'));
\ No newline at end of file
Loading