I'm working on a Symfony project and using mysql local database on my mac and it was working perfectly fine until today when i wanted to update the database table using the command
./bin/console doctrine:schema:update --force
and its giving me this error, can somebody help me find out whats going on.
[Doctrine\DBAL\DBALException]
An exception occurred while executing 'SELECT TABLE_NAME AS `Table`, NON_UNIQUE AS Non_Unique, INDEX_NAME AS Key_name, SEQ_IN_INDEX AS Seq_in_index, COLUMN_NAME AS Colum
n_Name, COLLATION AS Collation, CARDINALITY AS Cardinality, SUB_PART AS Sub_Part, PACKED AS Packed, NULLABLE AS `Null`, INDEX_TYPE AS Index_Type, COMMENT AS Comment FROM
information_schema.STATISTICS WHERE TABLE_NAME = 'collectionTopping' AND TABLE_SCHEMA = 'foodSystem' ORDER BY SEQ_IN_INDEX ASC':
Warning: PDO::query(): MySQL server has gone away
[Symfony\Component\Debug\Exception\ContextErrorException]
Warning: PDO::query(): MySQL server has gone away
I am using Symfony 3 on a Mac OS