I'm learning SYMFONY 3.
The last steps I took before the error:
to create crud with ORM Doctrine
to create your route
Sign in to the post page
After loading "Create a new entry" gives the following error .:
Could not load type "Tableless \ ModelBundle \ Form \ DatetimeType"
500 Internal Server Error - InvalidArgumentException
Page "Tableless \ ModelBundle \ Form \ PostType.php"
namespace Tableless\ModelBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class PostType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('title')
->add('content')
->add('createdAt', 'datetime')
->add('updateAt', 'datetime')
;
}
/**
* @param OptionsResolver $resolver
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'Tableless\ModelBundle\Entity\Post'
));
}
}
What was done wrong?
How can I overcome embarrassment?