Ant,

I'd definitely use a Propel behavior. Take a look at the
sfPropelSpamTagBehavior, for instance. Every query receives an additional
criteria automatically.

http://trac.symfony-project.com/trac/wiki/sfPropelSpamTagBehaviorPlugin

There is little documentation on behaviors

http://www.symfony-project.com/book/trunk/17-Extending-Symfony#Extending%20w
ith%20More%20Precision (scroll down a little, there you are: "Propel
Behaviors")

But there are enough examples to understand most of it

http://trac.symfony-project.com/trac/wiki/SymfonyPlugins#Propelextensions 

François

-----Message d'origine-----
De : [email protected] [mailto:[EMAIL PROTECTED]
De la part de Ant Cunningham
Envoyé : dimanche 29 avril 2007 23:14
À : [email protected]
Objet : [symfony-users] Best way to do this?


What would be the best way to add a default join and condition to ALL
queries in an application?

Ive got a table for workflow and for the frontend app I always have to
select only the records that are published regradless of their table.

How would you do this?

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