Is $this->getTrainings() returning a Trainings object or an array
containing 1 Trainings object?

Michael

On Oct 26, 3:21 pm, Jay Klehr <[EMAIL PROTECTED]> wrote:
> PHP isn't complaining that the method doesn't exist, but rather that
> "$this->getTrainings()" is not an object.
>
> Jay
>
> Michael Smith wrote:
> > That's interesting, that fixed my problems in 5.1.6. __toString() is
> > just a normal public method that you should be able to call like any
> > other.
>
> > Michael
>
> > On Oct 26, 10:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
>
> >> On 10/26/07, Michael Smith <[EMAIL PROTECTED]> wrote:
>
> >>     I've had similar problems with concatenation. Try return $this-
> >>     >getTrainings()->__toString() . ' ('.$this->getDate('m/d/Y').')';
>
> >>     Michael
>
> >> I tried that before, but get:
>
> >> Fatal error: Call to a member function __toString() on a non-object
> >> in ...lib/model/TrainingDays.php on line 14


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to