-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix gebruiksrecht delete logic #83
Conversation
👋 @bbrands02
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks okay, one tip for making the code more self-explanatory
src/Service/DRCService.php
Outdated
$gebruiksrechtValues = $this->entityManager->getRepository('App:Value')->findBy(['stringValue' => $informatieObject->getUri(), 'attribute' => $gebruiksrechtInfoObjectProperty]); | ||
|
||
// If we have less than 2 gebruiksrechten (1 is the gebruiksrecht we are deleting) for this enkelvoudiginformatieobject set enkelvoudiginformatieobject.indicatieGebruiksrecht to null. | ||
if (count($gebruiksrechtValues) < 2) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine in itself, but wouldn't =< 1 be more self explaining?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed
No description provided.