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
>
>
> 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
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
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
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
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
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();
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
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
__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
10 matches
Mail list logo