Hi Sela, how is it going? I met with the same situation some weeks ago and the solution I got was the following (take in consideration that my project is a Propel one):
1) on the generator.yml file of my frontend module I added: list: display: [=title, date, status_name] fields: status_name: { label: Status } 2) as status_name attribute didn't exist I had to create the corresponding getter method in my \lib\model\ProjectNews.php file public function getStatusName() { $statusName = "-"; if ($this->getStatus()) { $statusName = ProjectNewsPeer::$statuses[$this->getStatus()]; } return $statusName; } 3) as you can see it was necessary to create a public static array ($statuses) in my \lib\model\ProjectNewsPeer.php file which contained all the available statuses of my ProjectNews object. static public $statuses = array( 'C' => 'Created', 'H' => 'Hidden' ); That's all I did. ;-) Hope it helps you to implement what you need. Let me know if anything is understandable. Regards, *maro ::* On Mon, Jun 7, 2010 at 9:19 AM, Sela <tzi...@gmail.com> wrote: > i got a table with countries list and i keep the 2 letters code of the > country. i want to use a virtual column to be populated according to > the user language as i can get translation for all the countries using > the symfony. i want to have this virtual column in order to be able to > sort when i query the list of all the countries according to a > specific country. > > any idea how to do it? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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