mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Doctrine Schematool does not correctly handle views #5919
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.