diff options
-rw-r--r-- | Acl/Dbal/Schema.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Acl/Dbal/Schema.php b/Acl/Dbal/Schema.php index 010a51e..7d47e1c 100644 --- a/Acl/Dbal/Schema.php +++ b/Acl/Dbal/Schema.php @@ -43,6 +43,22 @@ final class Schema extends BaseSchema } /** + * Merges ACL schema with the given schema. + * + * @param BaseSchema $schema + */ + public function addToSchema(BaseSchema $schema)
+ {
+ foreach ($this->getTables() as $table) {
+ $schema->_addTable($table);
+ }
+
+ foreach ($this->getSequences() as $sequence) {
+ $schema->_addSequence($sequence);
+ }
+ }
+ + /** * Adds the class table to the schema */ protected function addClassTable() |