Check constant function ----- Message d'origine ---- De : Olivier Revollat <[EMAIL PROTECTED]> À : symfony-users@googlegroups.com Envoyé le : Mercredi, 5 Septembre 2007, 12h51mn 16s Objet : [symfony-users] Propel query : dynamically set fields
public function getClientByField($field,$pattern) { $con = Propel::getConnection(ClientsPeer::DATABASE_NAME); $c = new Criteria(); $c->add( ClientsPeer::$field,'%'.$pattern.'%',Criteria::LIKE); .... ... how can I pass the field to propel dynamically ? Thanks... ;) _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---