Пример #1
0
 /**
  * @param FamilyInterface $family
  * @param array           $requirements
  * @param array           $oldRequirements
  */
 protected function removeRequirements(FamilyInterface $family, array $requirements, array $oldRequirements)
 {
     $checkRequirements = new ArrayCollection($requirements);
     foreach ($oldRequirements as $requirement) {
         if (!$checkRequirements->contains($requirement)) {
             $family->removeAttributeRequirement($requirement);
         }
     }
 }