If I use the symfony console command generate:doctrine:crud with --write parameter I get an auto-generated controller working only in the indexAction route, but not in the others (newAction, deleteAction, updateAction). I think the problem is in the form creation. The resulting error is the following one:

Compile Error: Can't inherit abstract function Symfony\Component\Validator\ValidatorInterface::validate() (previously declared abstract in Symfony\Component\Validator\Validator\ValidatorInterface)

Server Error - FatalErrorException500 Internal in vendor/symfony/symfony/src/Symfony/Component/Validator/Validator/RecursiveValidator.php at line 31

I don't know, how to solve this problem.

2

There are 2 answers

0
tonygatta On BEST ANSWER

The only way to solve this problem is to change ValidatorInterface or to run almost PHP 5.6

0
Christophe Coevoet On

This error is the error message you get when running the new validator component in PHP 5.3.8 or older. You need to use at least PHP 5.3.9 to use recent versions of Symfony