1
0
mirror of synced 2025-02-09 00:39:25 +03:00

#6767 using in_array rather than array_search

Ref: https://github.com/doctrine/doctrine2/pull/6767/files#r157355050
This commit is contained in:
Marco Pivetta 2017-12-19 18:01:38 +01:00
parent 27c42d418b
commit b6aa4bab15
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -518,7 +518,7 @@ class SchemaTool
private function gatherRelationsSql($class, $table, $schema, &$addedFks, &$blacklistedFks)
{
foreach ($class->associationMappings as $id => $mapping) {
if (isset($mapping['inherited']) && array_search($id, $class->identifier) === false) {
if (isset($mapping['inherited']) && ! \in_array($id, $class->identifier, true)) {
continue;
}