Symfony2 DateTime — where's the calendar? File — where is the loader? :(

All a nice weekend. One thread of "Symphony music composers" can tell — any bundle extends the standard forms to the creation of the Doctrine of the field received "Normal" handlers?

A little I will explain. There is a standard Entity with two fields:

/**
* @ORM\Column(type="datetime", name="created_at")
* @ORM\GeneratedValue(strategy="AUTO")
* @Gedmo\Timestampable(on="create")
*
* @var DateTime $createdAt date of initial download
*/
protected $createdAt;

and

/**
* @Assert\File(maxSize="6000000")
*/
private $file;

Forms created Doctrine very sad: for the date that's six lists (year, month, day, hour, month, second).
For file is the standard "file".

What bundle to connect to for date drawn calendar? I do not want to reinvent the wheel, inherited from the standard and sculpt your. It's common tasks. Should be a couple of different solutions. from FOS, or somebody else...

Ps
October 8th 19 at 02:36
1 answer
October 8th 19 at 02:38
First, the form was not created doctrine, as a separate component.
Secondly, a widget for the date there is a parameter widget:
->add('published', 'date', array(
 'input' => 'datetime',
 'widget' => 'single_text',
 'label' => 'publication date',
 'format' => 'dd.MM.yyyy',
))
that allows you to set the type of the input field.
Well, for file is the type of widget file, and in the cookbook there is an example save the downloaded files.
OK, let "app/console doctrine:generate:crud" is not doctrine, it's not essential.

'widget' => 'single_text', < — the calendar is hidden here? - daija_Bashirian38 commented on October 8th 19 at 02:41
The calendar is not, in principle, single_text will allow you to enter the date in one field and this field you can already tie your favorite calendar. - saul.Trantow commented on October 8th 19 at 02:44

Find more questions by tags Symfony