In your module's actions.class.php you can override
addFiltersCriteria($c) :
protected function addFiltersCriteria($c)
{
if (isset($this->filters['field']) && $this->filters['field'] !==
'') {
// First : remove original conditions on this field
$c->remove(MyTablePeer::FIELD);
// Second : add my own condition
$c->add(MyTablePeer::FIELD, $this->filters['field'],
Criteria::LIKE);
}
}
You can find all this going into your cache : /cache/myApp/myEnv/
modules/autoMyModule/actions/actions.class.php
On 11 avr, 13:03, Mladen Gogala <[EMAIL PROTECTED]> wrote:
> I can't find a file to modify a query generated by "filters" in my
> module generated by the
> admin generator. I need to create a case-insensitive search but
> nothing works. I tried
> modifying test_proj/lib/model/om/BaseEmp.php, to no avail. The
> documentation is completely unclear and I can't find it.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---