Hi,
My development server runs php 5.2 and prod runs 5.1.
I am having trouble with the data model. the 2 relevant snippets are:
class Trainings extends BaseTrainings
{
public function __toString()
{
return $this->getTitle();
}
}
and
class TrainingDays extends BaseTrainingDays
{
public function __toString()
{
return $this->getTrainings().' ('.$this->getDate('m/d/Y').')';
}
}
the problem is that I cannot figure out where to put the __toString()
that is called implicitly in php 5.2, because on production it
outputs:
Object id #239 (11/16/2007)
Any ideas?
thanks
--
dc
-----
David Clark
Database Developer
Institute for Community Inclusion ( http://www.communityinclusion.org/)
[EMAIL PROTECTED]
(617) 287-4318
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---