Association association = null;
if (hasAnnotation(readMethod, field, ManyToMany.class)) {
association = propertyFactory.createManyToMany(entity, context, property);
ManyToMany manyToMany = getAnnotation(readMethod, field, ManyToMany.class);
if (!manyToMany.mappedBy().equals("")) {
<BUG>((org.grails.datastore.mapping.model.types.ManyToMany)association).setInversePropertyName(manyToMany.mappedBy());
} else {</BUG>
List<PropertyDescriptor> descriptors = referencedCpf.getPropertiesAssignableToType(Collection.class);
if (descriptors.size() > 0) {
for (PropertyDescriptor descriptor : descriptors) {

Association association = null;
if (hasAnnotation(readMethod, field, ManyToMany.class)) {
association = propertyFactory.createManyToMany(entity, context, property);
ManyToMany manyToMany = getAnnotation(readMethod, field, ManyToMany.class);
if (!manyToMany.mappedBy().equals("")) {
((org.grails.datastore.mapping.model.types.ManyToMany)association).setInversePropertyName(manyToMany.mappedBy());
referencedPropertyName = manyToMany.mappedBy();
} else {
List<PropertyDescriptor> descriptors = referencedCpf.getPropertiesAssignableToType(Collection.class);
if (descriptors.size() > 0) {
for (PropertyDescriptor descriptor : descriptors) {
