-
Notifications
You must be signed in to change notification settings - Fork 34
Troubleshooter
Koen Teuwen edited this page Jul 16, 2021
·
4 revisions
In particular situations, some errors might occur.
Exception: Doctrine\DBAL\Exception\InvalidFieldNameException
or Doctrine\DBAL\Driver\PDOException
Error message:
An exception occurred while executing '[query]' with params [0]: SQLSTATE[42S22]: Column not found: [number] Uknown column '[column name]' in '[table name]'
SQLSTATE[42S22]: Column not found: [number] Unknown column '[column name]' in '[table name]'
Occurs on: Pulling from the master branch.
Reason: The database schema is out of sync with the ORM data model in the source code.
Solution: Update the database schema by running the doctrine schema-tool ./orm orm:schema-tool:update --force
.
Note: If you get a fatal error Fatal error: Class 'Zend\Mvc\Application' not found in \web on line 16
, run export APP_ENV="development"
before running the schema-tool.
- Contributing
- Architecture
- Components
- View helpers
- Sub-projects
- Archive