1
0
Fork 0

Reset ids of aliased packages as well

pull/1186/merge
Jordi Boggiano 2012-10-22 14:28:55 +02:00
parent 350c7cbb3a
commit fef3dacdfb
1 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,9 @@ class ComposerRepository extends ArrayRepository implements NotifiableRepository
public function resetPackageIds() public function resetPackageIds()
{ {
foreach ($this->providersByUid as $package) { foreach ($this->providersByUid as $package) {
if ($package instanceof AliasPackage) {
$package->getAliasOf()->setId(-1);
}
$package->setId(-1); $package->setId(-1);
} }
} }