@@ -94,9 +94,9 @@ protected function addEntryTable()
94
94
$ table ->addUniqueIndex (['class_id ' , 'object_identity_id ' , 'field_name ' , 'ace_order ' ]);
95
95
$ table ->addIndex (['class_id ' , 'object_identity_id ' , 'security_identity_id ' ]);
96
96
97
- $ table ->addForeignKeyConstraint ($ this ->getTable ($ this ->options ['class_table_name ' ]), ['class_id ' ], ['id ' ], ['onDelete ' => 'CASCADE ' , 'onUpdate ' => 'CASCADE ' ]);
98
- $ table ->addForeignKeyConstraint ($ this ->getTable ($ this ->options ['oid_table_name ' ]), ['object_identity_id ' ], ['id ' ], ['onDelete ' => 'CASCADE ' , 'onUpdate ' => 'CASCADE ' ]);
99
- $ table ->addForeignKeyConstraint ($ this ->getTable ($ this ->options ['sid_table_name ' ]), ['security_identity_id ' ], ['id ' ], ['onDelete ' => 'CASCADE ' , 'onUpdate ' => 'CASCADE ' ]);
97
+ $ table ->addForeignKeyConstraint ($ this ->getTable ($ this ->options ['class_table_name ' ])-> getName () , ['class_id ' ], ['id ' ], ['onDelete ' => 'CASCADE ' , 'onUpdate ' => 'CASCADE ' ]);
98
+ $ table ->addForeignKeyConstraint ($ this ->getTable ($ this ->options ['oid_table_name ' ])-> getName () , ['object_identity_id ' ], ['id ' ], ['onDelete ' => 'CASCADE ' , 'onUpdate ' => 'CASCADE ' ]);
99
+ $ table ->addForeignKeyConstraint ($ this ->getTable ($ this ->options ['sid_table_name ' ])-> getName () , ['security_identity_id ' ], ['id ' ], ['onDelete ' => 'CASCADE ' , 'onUpdate ' => 'CASCADE ' ]);
100
100
}
101
101
102
102
/**
@@ -116,7 +116,7 @@ protected function addObjectIdentitiesTable()
116
116
$ table ->addUniqueIndex (['object_identifier ' , 'class_id ' ]);
117
117
$ table ->addIndex (['parent_object_identity_id ' ]);
118
118
119
- $ table ->addForeignKeyConstraint ($ table , ['parent_object_identity_id ' ], ['id ' ]);
119
+ $ table ->addForeignKeyConstraint ($ table-> getName () , ['parent_object_identity_id ' ], ['id ' ]);
120
120
}
121
121
122
122
/**
@@ -137,8 +137,8 @@ protected function addObjectIdentityAncestorsTable()
137
137
// MS SQL Server does not support recursive cascading
138
138
$ action = 'NO ACTION ' ;
139
139
}
140
- $ table ->addForeignKeyConstraint ($ oidTable , ['object_identity_id ' ], ['id ' ], ['onDelete ' => $ action , 'onUpdate ' => $ action ]);
141
- $ table ->addForeignKeyConstraint ($ oidTable , ['ancestor_id ' ], ['id ' ], ['onDelete ' => $ action , 'onUpdate ' => $ action ]);
140
+ $ table ->addForeignKeyConstraint ($ oidTable-> getName () , ['object_identity_id ' ], ['id ' ], ['onDelete ' => $ action , 'onUpdate ' => $ action ]);
141
+ $ table ->addForeignKeyConstraint ($ oidTable-> getName () , ['ancestor_id ' ], ['id ' ], ['onDelete ' => $ action , 'onUpdate ' => $ action ]);
142
142
}
143
143
144
144
/**
0 commit comments