Doctrine Schematool does not correctly handle views #5919

Open
opened 2026-01-22 15:22:04 +01:00 by admin · 0 comments
Owner

Originally created by @InputOutput on GitHub (Mar 12, 2018).

It is possible to map a Doctrine entity to a database view but it is not possible to configure the Schematool to correctly handle a view. It will try to INSERT a table with the name of the view.

See: http://www.doctrine-project.org/2009/06/19/using-views-with-doctrine.html

Schema_filter options does sometime comparable but it only filters on existing database table names, not views. We'd need the reverse functionality, so filtering on database table names based on the mapping.

Originally created by @InputOutput on GitHub (Mar 12, 2018). It is possible to map a Doctrine entity to a database view but it is not possible to configure the Schematool to correctly handle a view. It will try to INSERT a table with the name of the view. See: http://www.doctrine-project.org/2009/06/19/using-views-with-doctrine.html Schema_filter options does sometime comparable but it only filters on existing database table names, not views. We'd need the reverse functionality, so filtering on database table names based on the mapping.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#5919