Yes i think there is.

But i think you want to retrieve some objects that are easy to extract. If
you have a category object, then you could use
$category->getItems() wich will return an array with all items corresponding
to that category.

If you are using doctrine you could use findBy* methods. Unfortunately i do
not have a decent internet atm to give you an example.
Alecs

On Dec 24, 2009 1:24 PM, "mirfan" <[email protected]> wrote:

is there any function like for retrieving data by foreign key like the
one we have retrieveByPk();

--

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]<symfony-users%[email protected]>
.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.

--

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