Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Invoker inside preHydrate
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
  5 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
 
Dan Wilson  
View profile  
 More options Jun 4 2008, 12:47 pm
From: "Dan Wilson" <killroy...@gmail.com>
Date: Wed, 4 Jun 2008 10:47:32 -0600
Local: Wed, Jun 4 2008 12:47 pm
Subject: Invoker inside preHydrate
I have a preHydrate listener that has similar functionality across
several tables.  I've attached it to the tables, but some
functionality needs to know which table it is actually working on.

The $event->getInvoker() method doesn't return anything.  Does anyone
have any other suggestions to determine to which class the invoker is
attached?

Thanks,
-=Dan


    Reply to author    Forward  
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.
Jonathan Wage  
View profile  
 More options Jun 6 2008, 10:36 am
From: "Jonathan Wage" <jonw...@gmail.com>
Date: Fri, 6 Jun 2008 09:36:45 -0500
Local: Fri, Jun 6 2008 10:36 am
Subject: Re: [doctrine-user] Invoker inside preHydrate

Hmm. It doesn't look like the event is setting an invoker. I am not sure if
it should behave this way or not, can you create a ticket?

Thanks, Jon

On Wed, Jun 4, 2008 at 11:47 AM, Dan Wilson <killroy...@gmail.com> wrote:

> I have a preHydrate listener that has similar functionality across
> several tables.  I've attached it to the tables, but some
> functionality needs to know which table it is actually working on.

> The $event->getInvoker() method doesn't return anything.  Does anyone
> have any other suggestions to determine to which class the invoker is
> attached?

> Thanks,
> -=Dan

--
Jonathan Wage
http://www.jwage.com
http://www.centresource.com

    Reply to author    Forward  
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.
Dan Wilson  
View profile  
 More options Jun 6 2008, 12:03 pm
From: "Dan Wilson" <killroy...@gmail.com>
Date: Fri, 6 Jun 2008 10:03:31 -0600
Local: Fri, Jun 6 2008 12:03 pm
Subject: Re: [doctrine-user] Re: Invoker inside preHydrate
I actually found a way around it.  I simply created a constructor in
the listener and passed in the invoker table name.  This worked just
fine for me, but might not be the best solution for others.

I did some investigation and it appears that someone else created a
ticket on this, but for a different purpose.  Once they figured out
they could get the data from $event, they closed the ticket as
invalid.  This ticket could be re-opened if you feel $event should be
able to tell you the invoker.

http://trac.phpdoctrine.org/ticket/657

-=Dan


    Reply to author    Forward  
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.
Jonathan Wage  
View profile  
 More options Jun 6 2008, 1:55 pm
From: "Jonathan Wage" <jonw...@gmail.com>
Date: Fri, 6 Jun 2008 12:55:52 -0500
Local: Fri, Jun 6 2008 1:55 pm
Subject: Re: [doctrine-user] Re: Invoker inside preHydrate

I think possibly an invoker should be set. Not sure what the invoker should
be though. Can you create a ticket?

- Jon

--
Jonathan Wage
http://www.jwage.com
http://www.centresource.com

    Reply to author    Forward  
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.
Dan Wilson  
View profile  
 More options Jun 6 2008, 11:37 pm
From: "Dan Wilson" <killroy...@gmail.com>
Date: Fri, 6 Jun 2008 21:37:51 -0600
Local: Fri, Jun 6 2008 11:37 pm
Subject: Re: [doctrine-user] Re: Invoker inside preHydrate
I would say that the invoker should be the object that has the
->addListener() within the setUp() method.

Ticket filed: http://trac.phpdoctrine.org/ticket/1115

Thanks,
-=Dan


    Reply to author    Forward  
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 »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google