Symfony do not like Mariadb :( [duplicate]

Good morning gentlemen of internet,

Please be indulgent, this is the first time I post in any forum.

So this is the problem I face for a few days:

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘order t0’ at line 1

This is the supposed problematic code :

$em = $this->getDoctrine()->getManager();
$ordOrders = $em->getRepository(Order::class)->findAll();

As you see it’s pretty basic, I do not understant what’s wrong. Maybe the database structure?
What do I have to watch out for?

I work on mac, xampp with :

Apache 2.4.41,
MariaDB 10.4.11,
PHP 7.4.2

Till now I have tired to update mariaDB, I checked the entity structure, deleted the foreign key linked to this table.

I do not know in wich direction I have to search and not be able to find a solution to my issue. Any help would be appreciated!

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *