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... ;)

--~--~---------~--~----~------------~-------~--~----~
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