Message from discussion
1.2 - resolving the conflict between auto accessors and Doctrine_Record's methods
Received: by 10.100.92.2 with SMTP id p2mr6220754anb.9.1245699056291;
Mon, 22 Jun 2009 12:30:56 -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 16si958639gxk.5.2009.06.22.12.30.56;
Mon, 22 Jun 2009 12:30:56 -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 4EC6D679416
for <doctrine-dev@googlegroups.com>; Mon, 22 Jun 2009 15:27:36 -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 JWQj4RuD3fDO for <doctrine-dev@googlegroups.com>;
Mon, 22 Jun 2009 15:27:36 -0400 (EDT)
Received: from cepheus.geminisbs.net (cepheus.geminisbs.net [206.71.147.202])
by cepheus.geminisbs.net (Postfix) with ESMTP id 2BCC3679414
for <doctrine-dev@googlegroups.com>; Mon, 22 Jun 2009 15:27:36 -0400 (EDT)
From: "Adam Huttler" <adam.hutt...@fracturedatlas.org>
To: <doctrine-dev@googlegroups.com>
References: <758a4f2c-97bc-476b-ac05-2b03c1cf1cfe@l12g2000yqo.googlegroups.com>
In-Reply-To: <758a4f2c-97bc-476b-ac05-2b03c1cf1cfe@l12g2000yqo.googlegroups.com>
Subject: RE: [doctrine-dev] 1.2 - resolving the conflict between auto accessors and Doctrine_Record's methods
Date: Mon, 22 Jun 2009 15:27:36 -0400 (EDT)
Message-ID: <022901c9f36f$f4d6b140$de8413c0$@huttler@fracturedatlas.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Mailer: Microsoft Office Outlook 12.0
X-Mailer: Zimbra 5.0.16_GA_2921.RHEL5 (ZimbraConnectorForOutlook/5.0.2988.16)
Thread-Index: AcnzbztilSGbXcWWQ+WcqC/TRR0PuQAAJ/RQ
Content-Language: en-us
As a practical matter, you can always define custom accessors/mutators for
just those fields. That's probably not what you're looking for, though.
> -----Original Message-----
> From: doctrine-dev@googlegroups.com [mailto:doctrine-
> dev@googlegroups.com] On Behalf Of eXtreme
> Sent: Monday, June 22, 2009 3:28 PM
> To: doctrine-dev
> Subject: [doctrine-dev] 1.2 - resolving the conflict between auto
> accessors and Doctrine_Record's methods
>
>
> Doctrine supports a cool feature called "auto accessor override".
> AFAIR this feature wasn't planned before 1.0, that's why there is a
> "small" problem now in 1.0 and 1.1, which is possible to be
> (partially?) fixed in new 1.2 branch (I hope so).
>
> I'm talking about get* and set* functions in Doctrine_Record and
> Doctrine_Record_Abstract. They reserve some names, which cannot be
> used as model's fieldnames, because everything goes crazy - they
> conflict with magic and custom get* and set* function of auto
> accessors. I heard many complains >>why does doctrine crash when I add
> "data" field in my model<< (for example for session storage). And
> there is no info anywhere, that it is impossible to have "data",
> "last" or "last_modified" fields in doctrine with auto accessors or in
> symfony.
>
> I'm aware that renaming all get* and set* is a big backward
> compatibility breaker, so I won't dare to propose that. :P Is there
> any other way to resolve that conflict?
>