Hi Andrew,

On 06/11/2009 03:06 PM Andrejus Komarovas wrote:

> I'm using `ezcPersistentObject` component for my project (some kind of 
> CRM). I have 3 objects: `Client`, `Project`, `Task`. Relationship 
> between them is as follows: `Client`->`Project` - 1 : n and 
> `Project`->`Task` - 1 : n.
> I want to retrieve all tasks that belong to some client. The problem is 
> the relationship between `Client` and `Task` is indirect and I can't 
> find a way how to define such a relationship or how to retrieve such 
> information. What would be your suggestions?

this is possible in the new version of PersistentObject (currently in
beta status, but expected to get RC next Monday). In this version, we
added a feature called "identity map", which allows you for example to
fetch related objects of arbitrary depth in one JOIN.

For more detail, take a look at the tutorial shipped with the beta [1].
I'm sorry, that the docs for this feature are not rendered online, yet.
They will come on Monday, latestes.

HTH,
Toby

[1] http://ezcomponents.org/download
-- 
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards

Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer

t...@ez.no | eZ Systems AS | ez.no
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to