Fix for 1b2df8d
.
This commit is contained in:
parent
1b2df8d4c3
commit
34a9aa8caf
|
@ -32,6 +32,7 @@ class LoadSubscribersData extends AbstractFixture implements OrderedFixtureInter
|
|||
];
|
||||
|
||||
foreach ($users as $key => $user) {
|
||||
if (array_key_exists($key, $subscriptions)) {
|
||||
foreach ($subscriptions[$key] as $userId) {
|
||||
$subscriber = $users[$userId];
|
||||
$subscription = new Subscription($user, $subscriber);
|
||||
|
@ -41,6 +42,7 @@ class LoadSubscribersData extends AbstractFixture implements OrderedFixtureInter
|
|||
$user->addSubscriber($subscription);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$om->flush();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue