Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Fatal error: Method Evenement::__toString() must not throw an exception in
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jihane  
View profile  
 More options Aug 13 2012, 9:20 am
From: jihane <jihane.bah...@gmail.com>
Date: Mon, 13 Aug 2012 06:20:20 -0700 (PDT)
Local: Mon, Aug 13 2012 9:20 am
Subject: Fatal error: Method Evenement::__toString() must not throw an exception in

please , i have 2 tables
contact :
id_contact
name
..

evenement :
id_event
action
id_contact_event

and id_contact_event is a foreign key refering to id_contact in contact
table ,
when i added this :
 <?php $r = Doctrine_Query::create()
                ->select('COUNT(*) as nb ')
                ->from('Evenement e')
                ->Where('e.id_contact_event = ?', $contact->getIdContact() )
                ->groupBy('e.id_contact_event');
                $num = $r->fetchOne();

                ?>

                <td><?php echo $num; ?></td>
i've got that error :
 Fatal error: Method Evenement::__toString() must not throw an exception in
please help me !


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Flothmann  
View profile  
 More options Aug 13 2012, 5:53 pm
From: Christian Flothmann <christian.flothm...@xabbuh.de>
Date: Mon, 13 Aug 2012 23:53:19 +0200
Local: Mon, Aug 13 2012 5:53 pm
Subject: Re: [symfony1] Fatal error: Method Evenement::__toString() must not throw an exception in
Hello,

> i've got that error :
>  Fatal error: Method Evenement::__toString() must not throw an exception in
> please help me !

what does your __toString()-method in your Evenement-class look like?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jihane  
View profile  
 More options Aug 14 2012, 4:49 pm
From: jihane <jihane.bah...@gmail.com>
Date: Tue, 14 Aug 2012 13:49:47 -0700 (PDT)
Local: Tues, Aug 14 2012 4:49 pm
Subject: Re: [symfony1] Fatal error: Method Evenement::__toString() must not throw an exception in

hello , that's my method :
public function __toString()
{

  return $this->getEvenement();

}

Le lundi 13 août 2012 21:53:19 UTC, Christian Flothmann a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Durost  
View profile  
 More options Aug 14 2012, 4:53 pm
From: David Durost <david.dur...@gmail.com>
Date: Tue, 14 Aug 2012 16:53:13 -0400
Local: Tues, Aug 14 2012 4:53 pm
Subject: Re: [symfony1] Fatal error: Method Evenement::__toString() must not throw an exception in

Your returning the entire entity for your to string method essentially
putting you into a loop. Do something like return $this->id_event;
On Aug 14, 2012 4:49 PM, "jihane" <jihane.bah...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jihane  
View profile  
 More options Aug 14 2012, 5:00 pm
From: jihane <jihane.bah...@gmail.com>
Date: Tue, 14 Aug 2012 14:00:45 -0700 (PDT)
Local: Tues, Aug 14 2012 5:00 pm
Subject: Re: [symfony1] Fatal error: Method Evenement::__toString() must not throw an exception in

i've put this->getIdEvent(); and i've got another error :
Catchable fatal error: Method Evenement::__toString() must return a string
value in

Le mardi 14 août 2012 20:53:13 UTC, David Durost a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Durost  
View profile  
 More options Aug 14 2012, 5:03 pm
From: David Durost <david.dur...@gmail.com>
Date: Tue, 14 Aug 2012 17:03:48 -0400
Local: Tues, Aug 14 2012 5:03 pm
Subject: Re: [symfony1] Fatal error: Method Evenement::__toString() must not throw an exception in

Do you have a method setup called getIdEvent? Else it'd just be
$this->id_event
On Aug 14, 2012 5:00 PM, "jihane" <jihane.bah...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jihane  
View profile  
 More options Aug 14 2012, 5:08 pm
From: jihane <jihane.bah...@gmail.com>
Date: Tue, 14 Aug 2012 14:08:34 -0700 (PDT)
Local: Tues, Aug 14 2012 5:08 pm
Subject: Re: [symfony1] Fatal error: Method Evenement::__toString() must not throw an exception in

yes i have this method , and i've put also this->id_event , and i've got
that error : Catchable fatal error: Method Evenement::__toString() must
return a string value in , i don't know what's the problem

Le mardi 14 août 2012 21:03:48 UTC, David Durost a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »