Re: [symfony-users] __tostring

2010-06-03 Thread Eno
On Wed, 2 Jun 2010, safa boubekri wrote: > but i want to have npm&prenom in the table of paiment: select*from paiment > it give me id_person not nom& prenom I think Alexandru already answered. -- -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] __tostring

2010-06-02 Thread safa boubekri
> > > tank youbut in the choise i have liste of nom&prenom > but i want to have npm&prenom in the table of paiment: select*from paiment it give me id_person not nom& prenom -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] __tostring

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, safa boubekri wrote: > in the table paimnentthe id_person is still number > > i want that it will be give me the nom & prenom of person So in the Person class, you need to define __toString() that returns the string in the format you need. Example: http://www.sym

Re: [symfony-users] __tostring

2010-06-02 Thread safa boubekri
in the table paimnentthe id_person is still number i want that it will be give me the nom & prenom of person i hope that is clear thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message beca

Re: [symfony-users] __tostring

2010-06-02 Thread Eno
On Tue, 1 Jun 2010, safa boubekri wrote: > *class paiment extends BasePaiment > { > public function __toString() > { > return $this->getPerson()->__toString(); > }* > * > * > *but the id_person is style number* What is 'style number' ? -- -- If you want to report a vulnerability issue on

Re: [symfony-users] __tostring

2010-06-01 Thread safa boubekri
i modify paiment *class paiment extends BasePaiment { public function __toString() { return $this->getPerson()->__toString(); }* * * *but the id_person is style number* * * *thak you* -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.c

Re: [symfony-users] __tostring

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Alexandru-Emil Lupu wrote: > Find the "alias" that you are using to reference those 2 models, and just do > a plain __toString in your *paiement table > > Like > class paiment extends BasePaiment > { > public function __toString() > { > return $this->getPerson()->__toString();

Re: [symfony-users] __tostring

2010-06-01 Thread Alexandru-Emil Lupu
Find the "alias" that you are using to reference those 2 models, and just do a plain __toString in your *paiement table Like class paiment extends BasePaiment { public function __toString() { return $this->getPerson()->__toString(); } } * On Tue, Jun 1, 2010 at 4:39 PM, safa boubekri wrote: > Hel

[symfony-users] __tostring

2010-06-01 Thread safa boubekri
Hello, In my database, I've a table *paiement * that contains a foreign key * id_person * that refers to a table person. I've created a module with the admin generator for each one. I've modified the *generator.yml* of my module *phone* to replace the phone type *id_person * by the nom & pren

[symfony-users] __toString is misbehaving on production server...

2007-09-12 Thread Jonathan Franks
__toString works as expected on my local development machine but fails on my production server. It outputs 'object' or 'object id #X' instead of the return value of the toString method. Any advice please?? --~--~-~--~~~---~--~~ You received this message because