Although its not incorporated directly we know that the rel. is 1-1. So 
you can still write a custom Peer method to hydrate both records using 
that as an example. As long as you use a method name(s) not currently 
used to generate something else you should be fine.

Another thing you can do although it seems backwards, is to do a 
sfGuardUserProfile::doSelectJoinsfGuarduser(). Just remember youre 
working with the profile instead of the user.

[email protected] wrote:
> Howto get multiple users profiles in one query?
> Sometimes I get list of users and then want to  present their 
> emails,birthday etc.
> 
> If I understand symfony docs - every access to profile generate one 
> database query (for example 50 users and 50 extra queries to Mysql)
> 
> I found only that solution - not tested - but I think it could be NOT 
> compatible with other plugins using sfGuard profile
> http://www.symfony-project.org/forum/index.php/m/64474/#msg_64474
> 
> 
> 
> 
> > 


-- 
Ant Cunningham
Graphic Designer | Web Developer
Vector Based Design

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to