/** * @param WrappedEntity $wrappedEntity * @param Component $component */ protected function canHandle(WrappedEntity $wrappedEntity, Component $component) { if (!$component instanceof Container && !$component instanceof MultiChoiceControl) { return FALSE; } if (!$wrappedEntity->getMetadata()->hasAssociation($component->getName())) { return FALSE; } if (!$wrappedEntity->isToManyAssociation($component->name)) { return FALSE; } return TRUE; }