title: Symfony 3 persisting oracle datetime object ORA-01830: date format picture ends before converting entire input string
body: <p>I'm working on a Symfony project and trying to insert a datetime object into an oracle Date column using doctrine. It seems the sql generated is using pure strings while I would expect the use of oracles <a href="https://www.techonthenet.com/oracle/functions/to_date.php" rel="nofollow noreferrer">to_date</a> function.</p>
  
  <p>am I missing something?</p>
  
  <pre><code>An exception occurred while executing 'INSERT INTO detail (id, code, descr, create_date, update_date) VALUES (?, ?, ?, ?, ?)' with params [1527546, 60000, "description..", "2017-02-08 00:00:00", "2017-02-08 00:00:00"]:  ORA-01830: date format picture ends before converting entire input string
  </code></pre>
  
  <p>My Entity:</p>
  
  <pre><code>use Doctrine\ORM\Mapping as ORM;
  /**
  * @ORM\Entity
  * @ORM\Table(name="detail")
  */
  class Detail
  {
      /**
       * @ORM\Id
       * @ORM\Column(type="integer", length=9)
       * @ORM\SequenceGenerator(sequenceName="detail_id", allocationSize=1, initialValue=1)
       * @ORM\GeneratedValue(strategy="AUTO")
       */
      public $id;
  
      /**
       * @ORM\Column(type="integer", length=6)
       */
      public $code;
  
      /**
       * @ORM\Column(type="string")
       */
      public $descr;
  
      /**
       * @ORM\Column(type="datetime")
       */
      public $create_date;
  
      /**
       * @ORM\Column(type="datetime")
       */
      public $update_date;
  }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>    $em = $this-&gt;getDoctrine()-&gt;getManager();
  
      $detail = new Detail();
      $detail-&gt;setCode(60000);
      $detail-&gt;setDescr('description..');
  
      $now_date = new \DateTime('now');
  
      $detail-&gt;setCreateDate($now_date);
      $detail-&gt;setUpdateDate($now_date);
  
      $em-&gt;persist($detail);
      $em-&gt;flush();
  </code></pre>