Doctrine\DBAL\Schema\Visitor\RemoveNamespacedAssets
Remove assets from a schema that are not in the default namespace.
Some databases such as MySQL support cross databases joins, but don't
allow to call DDLs to a database from another connected database.
Before a schema is serialized into SQL this visitor can cleanup schemas with
non default namespaces.
This visitor filters all these non-default namespaced tables and sequences
and removes them from the SChema instance.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class RemoveNamespacedAssets
implements
Visitor
{
- // members
- private Schema $schema;
- // methods
- public void acceptSchema()
- public void acceptTable()
- public void acceptSequence()
- public void acceptColumn()
- public void acceptForeignKey()
- public void acceptIndex()
Hierarchy
Implements
Members
private
- $schema — Doctrine\DBAL\Schema\Schema