title: symfony bootstrap-datepicker - default date persisted
body: <p>I have a problem with this datepicker :<a href="http://bootstrap-datepicker.readthedocs.org/en/stable/index.html" rel="nofollow">http://bootstrap-datepicker.readthedocs.org/en/stable/index.html</a></p>
  
  <p>I work with symfony framework, on last version.</p>
  
  <p>I do all css/js file inclusion, i add a class on my field for js, and i use this configuration :</p>
  
  <pre><code>$('.datepick').datepicker({
          language: "fr",
          todayBtn: "linked",
          keyboardNavigation: false,
          forceParse: false,
          calendarWeeks: true,
          autoclose: true
      });
  </code></pre>
  
  <p>So in regular step, i can select a date with my datepicker.</p>
  
  <p>My problem is :
  when i don't select a date in form (optionnal field), the current date is always saved on field.</p>
  
  <p>I just want to remove this behaviour : when no date is selected, no date is persist in entity. I don't have any idea for solve this.</p>
  
  <p>Anyone have an idea ?</p>
  
  <p>-- </p>
  
  <p>Thx for you help </p>
  
  <p>my field in formtype is :</p>
  
  <pre><code>$builder-&gt;add('dateNaissance', 'birthday', array(
              'label' =&gt; 'form.tiers.dateNaissance', 'translation_domain' =&gt; 'GBPCoreBundle', 'required' =&gt; false,
              'widget' =&gt; 'single_text', 'format' =&gt; 'dd/MM/yyyy', 'input' =&gt; 'datetime', 'attr' =&gt; array('class' =&gt; 'datepick')
          ))
  </code></pre>
  
  <p>My view is :</p>
  
  <pre><code>{{ form_row(form.dateNaissance) }}
  </code></pre>
  
  <p>My entity is :</p>
  
  <pre><code>/**
   * @var \Date
   *
   * @ORM\Column(name="dateNaissance", type="date", nullable=true)
   * @Assert\Date(message="La date de naissance {{ value }} doit être un type {{ type }} valide.")
   */
  private $dateNaissance;
  </code></pre>
  
  <p>and my consctructor is empty, i didn't set default value</p>
  
  <p>My controller is very basic, i don't act on this field </p>