Skip to content

Commit

Permalink
Merge pull request #460 from gokhanakgul/GRAILS-11029
Browse files Browse the repository at this point in the history
GRAILS-11029 removeFrom missing check otherSide attribute
  • Loading branch information
graemerocher committed Feb 10, 2014
2 parents b0aea08 + b0044d7 commit 63cf5fd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -383,7 +383,7 @@ class DomainClassGrailsPlugin {
metaClass."removeFrom${collectionName}" = {Object arg ->
if (otherDomainClass.clazz.isInstance(arg)) {
delegate[prop.name]?.remove(arg)
if (prop.bidirectional) {
if (prop.bidirectional && prop.otherSide) {
if (prop.manyToMany) {
String name = prop.otherSide.name
arg[name]?.remove(delegate)
Expand Down

0 comments on commit 63cf5fd

Please sign in to comment.