For now I succeded to create a function that retrieves data from the database using Doctrine\'s function createQueryBuilder.
Does anybody know if there is a similar
If you use DBAL queryBuilder, it is possible to insert.
$qb = $connection->createQueryBuilder();
To insert with the queryBuilder it is like this :
$qb->insert('MuBundle:MyClass', 'momc')
->values (array(
'property1 (id for example)' => '?'
'property2 (name for exmaple)' => '?'
))
->setParameter(0, $id)
->setparameter(1, $name)