I am wondering if the function `persist()` from Doctrine is safe to prevent SQL injection. I have searched, but after reading for a while, it still isn't clear to me. I am using Symfony 2:

```
$em = $this->getDoctrine()->getManager();
$em->persist($log);
$em->flush();

```