In Propel I have a double JOIN: the Zipcode table is joined in a query
on the User table.

Now I have two functions which both join the Zipcode table:
* addSortCriteria()
* addFilterCriteria()

When a user sorts on a record from the Zipcode table
(addSortCriteria), the Zipcode table is joined, as well as a user
filters on a record from the Zipcode table (addFilterCriteria).

The problem is, when a user sorts ánd filters on a record from the
Zipcode table, the table is joined twice. And that gives an SQL error,
ofcourse.
I cannot change this situation. Maybe the both functions do not
require the Zipcode join (both use User table columns), or just one of
them uses it, or both. If none of them uses it, the table shouldn't be
joined.

Is there some sort of method to check if a table is already joined?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

Reply via email to