some days behind I published a post(How to filter admin_double_list
content?) requesting help to filter the content shown by admin_doble_list,
thanks to the offered answer I implemented the patch that allows me to
call to a method of the classes peer, it was a great help, but I need to
filter the shown listing, here I leave you an example:
in FuncionalidadPeer.php
public static function getFuncionalidadsBySswiId(/*$sswi_id * /)
{
$c = new Criteria ();
$c->add(FuncionalidadPeer::SSWI_ID,1); / / passing 1 directly
it works ok
return self::doSelect($c);
}
in Rol.php
public function getRolFuncionalidadsJoinFuncionalidad(/*$sswi_id * /)
{
$c = new Criteria ();
$c->clearSelectColumns ();
$c->add(RolFuncionalidadPeer::SSWI_ID, 1); / / it filters app
$c->add(RolFuncionalidadPeer::ROL_ID,$this->getId ());
$c->addJoin(RolFuncionalidadPeer::FUNCIONALIDAD_ID,FuncionalidadPeer::ID);
return self::getRolFuncionalidadsJoinFuncionalidadRelatedBySswiId($c);
}
in both cases I need to pass the variable $sswi_id like a parameter. is it
possible to make it? what files would I have to modify?
I´ll wait your answers
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
-~----------~----~----~----~------~----~------~--~---