I am not sure, but i think you can do it with Containable behavior or with joins and conditions
Em quinta-feira, 31 de janeiro de 2013 14h30min37s UTC-2, byqsri escreveu: > > Hi > I have these Model : > User (User belongsTo Group) > Group (Group hasMany User) > Document > > I manage permissions to access to documents with ACL (User and Group like > Aro and Document like Aco) > > Now I have two questions : > > 1)How can I retrive all documents that a user can access and how can I > paginate them? > > 2)How can I retrive all users that can access to a certainly document and > how can I paginate them? > > I would find best solutions about these questions (i.e. cn the lowest > number of not heavy queries) > > Many Thnaks > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
