graemerocher opened a new issue, #14416:
URL: https://github.com/apache/grails-core/issues/14416

   Original Reporter: bond
   Environment: Not Specified
   Version: 1.0.0.M7
   Migrated From: http://jira.grails.org/browse/GPMONGODB-57
   
   Suppose there is
   
   {noformat}
   class Organisation{
      static hasMany={organisations:Organisation}
   
      static constraints = {
         organisations range:1..2
      }
   }
   {noformat}
   
   The above declaration allows 2 Organisation objects to be created under 
every other Organisation. If possible could you please provide a constraint 
using which we can restrict this depth. For example, a Organisation should have 
only two children and no more children of children should be possible.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to