Hi,

Does anyone know how to find every relation of a model from the
Doctrine_Query object?

My schema:

Destination:
  columns:
    name:                { type: string(100), notnull: true }

Owner:
  columns:
    name:               { type: string(255) }

Property:
    destination_id:      { type: integer, notnull: true }
    owner_id:            { type: integer, notnull: true }
  relations:
    Destination:        { onDelete: CASCADE, local: destination_id,
foreign: id, foreignAlias: Properties }
    Owner:              { onDelete: CASCADE, local: owner_id, foreign:
id, foreignAlias: Properties }


If I'm using the admin generator, my question is how to filter owners
by destination_id when the build_query event is fired? I don't wanna
touch every single query, but build a general wrapper that finds all
relations and add destination_id when necessary...

Is that possible?

Thanks!!

--

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