Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
mapValue - documentation incorrect
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
  4 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:
Follow-up To:
Add Cc | Add Follow-up 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 that you hear
 
Adam Huttler  
View profile   Translate to Translated (View Original)
 More options 24 June, 16:57
From: "Adam Huttler" <adam.hutt...@fracturedatlas.org>
Date: Wed, 24 Jun 2009 11:57:46 -0400 (EDT)
Local: Wed 24 June 2009 16:57
Subject: mapValue - documentation incorrect

Hi,

The documentation for mapping custom values is incorrect:
http://www.doctrine-project.org/documentation/manual/1_1/en/component...
view#record:mapping-custom-values

The example in the docs shows $this->mapValue() being called in
setTableDefinition(), but that doesn't work. It needs to be called in
construct() for it to work correctly.

Having said that, I think this is the wrong approach. Doesn't it make more
sense to define a custom property in setTableDefinition(), alongside all
of the regular columns?

Thanks,
Adam


    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   Translate to Translated (View Original)
 More options 25 June, 13:53
From: Jonathan Wage <jonw...@gmail.com>
Date: Thu, 25 Jun 2009 07:53:16 -0500
Local: Thurs 25 June 2009 13:53
Subject: Re: [doctrine-dev] mapValue - documentation incorrect

Can you log a ticket for this if you don't mind?

Thanks, Jon

On Wed, Jun 24, 2009 at 10:57 AM, Adam Huttler <

--
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at jonathan.w...@sensio.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.
Adam Huttler  
View profile   Translate to Translated (View Original)
 More options 25 June, 14:34
From: "Adam Huttler" <adam.hutt...@fracturedatlas.org>
Date: Thu, 25 Jun 2009 09:34:26 -0400 (EDT)
Local: Thurs 25 June 2009 14:34
Subject: RE: [doctrine-dev] Re: mapValue - documentation incorrect

Done:

http://trac.doctrine-project.org/ticket/2287

From: doctrine-dev@googlegroups.com [mailto:doctrine-dev@googlegroups.com]
On Behalf Of Jonathan Wage
Sent: Thursday, June 25, 2009 8:53 AM
To: doctrine-dev@googlegroups.com
Subject: [doctrine-dev] Re: mapValue - documentation incorrect

Can you log a ticket for this if you don't mind?

Thanks, Jon

On Wed, Jun 24, 2009 at 10:57 AM, Adam Huttler

<adam.hutt...@fracturedatlas.org> wrote:

Hi,

The documentation for mapping custom values is incorrect:
http://www.doctrine-project.org/documentation/manual/1_1/en/component...
view#record:mapping-custom-values

The example in the docs shows $this->mapValue() being called in
setTableDefinition(), but that doesn't work. It needs to be called in
construct() for it to work correctly.

Having said that, I think this is the wrong approach. Doesn't it make more
sense to define a custom property in setTableDefinition(), alongside all
of the regular columns?

Thanks,
Adam

--
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related
questions at jonathan.w...@sensio.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.
Jonathan Wage  
View profile   Translate to Translated (View Original)
 More options 25 June, 15:11
From: Jonathan Wage <jonw...@gmail.com>
Date: Thu, 25 Jun 2009 09:11:59 -0500
Local: Thurs 25 June 2009 15:11
Subject: Re: [doctrine-dev] Re: mapValue - documentation incorrect

Thanks Adam.

- Jon

On Thu, Jun 25, 2009 at 8:34 AM, Adam Huttler <

--
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at jonathan.w...@sensio.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.
End of messages
« Back to Discussions « Newer topic     Older topic »

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