Message from discussion
mapValue - documentation incorrect
Received: by 10.90.79.17 with SMTP id c17mr1355176agb.6.1245859277324;
Wed, 24 Jun 2009 09:01:17 -0700 (PDT)
Return-Path: <adam.hutt...@fracturedatlas.org>
Received: from cepheus.geminisbs.net (cepheus.geminisbs.net [206.71.147.202])
by gmr-mx.google.com with ESMTP id 14si80854gxk.3.2009.06.24.09.01.17;
Wed, 24 Jun 2009 09:01:17 -0700 (PDT)
Received-SPF: pass (google.com: domain of adam.hutt...@fracturedatlas.org designates 206.71.147.202 as permitted sender) client-ip=206.71.147.202;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of adam.hutt...@fracturedatlas.org designates 206.71.147.202 as permitted sender) smtp.mail=adam.hutt...@fracturedatlas.org
Received: from localhost (localhost.localdomain [127.0.0.1])
by cepheus.geminisbs.net (Postfix) with ESMTP id C54886793F7
for <doctrine-dev@googlegroups.com>; Wed, 24 Jun 2009 11:57:46 -0400 (EDT)
X-Virus-Scanned: amavisd-new at cepheus.geminisbs.net
Received: from cepheus.geminisbs.net ([127.0.0.1])
by localhost (cepheus.geminisbs.net [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id jYACDRrT1ymC for <doctrine-dev@googlegroups.com>;
Wed, 24 Jun 2009 11:57:46 -0400 (EDT)
Received: from cepheus.geminisbs.net (cepheus.geminisbs.net [206.71.147.202])
by cepheus.geminisbs.net (Postfix) with ESMTP id 3E1F16793F4
for <doctrine-dev@googlegroups.com>; Wed, 24 Jun 2009 11:57:46 -0400 (EDT)
From: "Adam Huttler" <adam.hutt...@fracturedatlas.org>
To: <doctrine-dev@googlegroups.com>
Subject: mapValue - documentation incorrect
Date: Wed, 24 Jun 2009 11:57:46 -0400 (EDT)
Message-ID: <007201c9f4e4$fe9e5540$fbdaffc0$@huttler@fracturedatlas.org>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0073_01C9F4C3.778CB540"
X-Mailer: Microsoft Office Outlook 12.0
X-Mailer: Zimbra 5.0.16_GA_2921.RHEL5 (ZimbraConnectorForOutlook/5.0.2988.16)
thread-index: Acn05P0LmOfUBB/5TwWI66ar5O0BYg==
Content-Language: en-us
This is a multi-part message in MIME format.
------=_NextPart_000_0073_01C9F4C3.778CB540
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi,
The documentation for mapping custom values is incorrect:
http://www.doctrine-project.org/documentation/manual/1_1/en/component-over
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
------=_NextPart_000_0073_01C9F4C3.778CB540
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0in;
margin-right:0in;
margin-bottom:10.0pt;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal>Hi,<o:p></o:p></p>
<p class=3DMsoNormal>The documentation for mapping custom values is =
incorrect:<br>
<a
href=3D"http://www.doctrine-project.org/documentation/manual/1_1/en/compo=
nent-overview#record:mapping-custom-values">http://www.doctrine-project.o=
rg/documentation/manual/1_1/en/component-overview#record:mapping-custom-v=
alues</a><o:p></o:p></p>
<p class=3DMsoNormal>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.<o:p></o:p></p>
<p class=3DMsoNormal>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?<o:p></o:p></p>
<p class=3DMsoNormal>Thanks,<br>
Adam<o:p></o:p></p>
</div>
</body>
</html>
------=_NextPart_000_0073_01C9F4C3.778CB540--