Hi

create a filter in generator.yml as follows:

filters:       [Text]

Now in Text.php file of model layer, add a __toString method as

public function __toString()
{
    return $this->getTitle();
}

May be it helps.
On Sun, Jul 12, 2009 at 8:37 PM, j_man <evge...@gmail.com> wrote:

>
> I spent a lot of time for custom fields in the filter, but it's no
> works.
> For example:
>
> I have the Article model, and I want to configure the filter for
> module article.
> All of the article item related with Text (text is another model).
>
> I want to add in the article filter field Text.title (title of text).
>
> I have trying to add a title in filters section in generator.yml, but
> it dispays as disabled.
>
> Please, help me with it!
>
> >
>


-- 
Regards,
Dheeraj

--~--~---------~--~----~------------~-------~--~----~
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 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to