Message from discussion
Late static bindings
Received: by 10.151.143.11 with SMTP id v11mr3289248ybn.20.1246052967710;
Fri, 26 Jun 2009 14:49:27 -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 16si640426gxk.1.2009.06.26.14.49.27;
Fri, 26 Jun 2009 14:49:27 -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 311C84520002
for <doctrine-dev@googlegroups.com>; Fri, 26 Jun 2009 17:45:44 -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 ClV6dxQ+3gi7 for <doctrine-dev@googlegroups.com>;
Fri, 26 Jun 2009 17:45:43 -0400 (EDT)
Received: from cepheus.geminisbs.net (cepheus.geminisbs.net [206.71.147.202])
by cepheus.geminisbs.net (Postfix) with ESMTP id CB62A67941C
for <doctrine-dev@googlegroups.com>; Fri, 26 Jun 2009 17:45:43 -0400 (EDT)
From: "Adam Huttler" <adam.hutt...@fracturedatlas.org>
To: <doctrine-dev@googlegroups.com>
References: <410f2e2a-882a-4904-9761-5cb3a8ee3d76@f16g2000vbf.googlegroups.com> <be85b5220906261428y463e4ce3n7ef4e986c3458ed@mail.gmail.com>
In-Reply-To: <be85b5220906261428y463e4ce3n7ef4e986c3458ed@mail.gmail.com>
Subject: RE: [doctrine-dev] Re: Late static bindings
Date: Fri, 26 Jun 2009 17:45:43 -0400 (EDT)
Message-ID: <01ea01c9f6a7$f7782fb0$e6688f10$@huttler@fracturedatlas.org>
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_01EB_01C9F686.70668FB0"
X-Mailer: Microsoft Office Outlook 12.0
X-Mailer: Zimbra 5.0.16_GA_2921.RHEL5 (ZimbraConnectorForOutlook/5.0.2988.16)
Thread-Index: Acn2pavaVLY+SOWySGWPQNzJFxezhwAAjAug
Content-Language: en-us
------=_NextPart_000_01EB_01C9F686.70668FB0
Content-Type: text/plain
The obvious example to be has always been:
$user = User::find($id);
From: doctrine-dev@googlegroups.com [mailto:doctrine-dev@googlegroups.com]
On Behalf Of Jonathan Wage
Sent: Friday, June 26, 2009 5:28 PM
To: doctrine-dev@googlegroups.com
Subject: [doctrine-dev] Re: Late static bindings
In Doctrine 2.0 the ModelTable does not exist. Things are pretty
different. But, we haven't begun to think about how or if we will use the
late static binding features of php 5.3
- Jon
On Fri, Jun 26, 2009 at 3:40 PM, Sailor <salim.semao...@gmail.com> wrote:
Hi all,
I know that Doctrine 2.0 is going to work with only one file per
model.
Is it possible that methods within the ModelTable class can be
declared as static methods (ActiveRecord-like) now that PHP 5.3
supports late static bindings ?
Salim
--
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
------=_NextPart_000_01EB_01C9F686.70668FB0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:x=3D"urn:schemas-microsoft-com:office:excel" xmlns:p=3D"urn:schemas-m=
icrosoft-com:office:powerpoint" xmlns:a=3D"urn:schemas-microsoft-com:office=
:access" xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s=3D"=
uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs=3D"urn:schemas-microsof=
t-com:rowset" xmlns:z=3D"#RowsetSchema" xmlns:b=3D"urn:schemas-microsoft-co=
m:office:publisher" xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadshee=
t" xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" xmlns=
:odc=3D"urn:schemas-microsoft-com:office:odc" xmlns:oa=3D"urn:schemas-micro=
soft-com:office:activation" xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc=3D"http://m=
icrosoft.com/officenet/conferencing" xmlns:D=3D"DAV:" xmlns:Repl=3D"http://=
schemas.microsoft.com/repl/" xmlns:mt=3D"http://schemas.microsoft.com/share=
point/soap/meetings/" xmlns:x2=3D"http://schemas.microsoft.com/office/excel=
/2003/xml" xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" xmlns:ois=
=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir=3D"http://=
schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds=3D"http://www.w3=
.org/2000/09/xmldsig#" xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint=
/dsp" xmlns:udc=3D"http://schemas.microsoft.com/data/udc" xmlns:xsd=3D"http=
://www.w3.org/2001/XMLSchema" xmlns:sub=3D"http://schemas.microsoft.com/sha=
repoint/soap/2002/1/alerts/" xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#"=
xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" xmlns:sps=3D"http://=
schemas.microsoft.com/sharepoint/soap/" xmlns:xsi=3D"http://www.w3.org/2001=
/XMLSchema-instance" xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/so=
ap" xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udc=
p2p=3D"http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf=3D"http:/=
/schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss=3D"http://sche=
mas.microsoft.com/office/2006/digsig-setup" xmlns:dssi=3D"http://schemas.mi=
crosoft.com/office/2006/digsig" xmlns:mdssi=3D"http://schemas.openxmlformat=
s.org/package/2006/digital-signature" xmlns:mver=3D"http://schemas.openxmlf=
ormats.org/markup-compatibility/2006" xmlns:m=3D"http://schemas.microsoft.c=
om/office/2004/12/omml" xmlns:mrels=3D"http://schemas.openxmlformats.org/pa=
ckage/2006/relationships" xmlns:spwp=3D"http://microsoft.com/sharepoint/web=
partpages" xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/services/20=
06/types" xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/services/200=
6/messages" xmlns:pptsl=3D"http://schemas.microsoft.com/sharepoint/soap/Sli=
deLibrary/" xmlns:spsl=3D"http://microsoft.com/webservices/SharePointPortal=
Server/PublishedLinksService" xmlns:Z=3D"urn:schemas-microsoft-com:" xmlns:=
st=3D"" 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;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","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-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.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><span style=3D'font-size:11.0pt;font-family:"Calibri",=
"sans-serif";
color:#1F497D'>The obvious example to be has always been:<o:p></o:p></span>=
</p>
<p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri",=
"sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri",=
"sans-serif";
color:#1F497D'>$user =3D User::find($id);<o:p></o:p></span></p>
<p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri",=
"sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri",=
"sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=3DMsoNormal><span style=3D'font-size:11.0pt;font-family:"Calibri",=
"sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in =
4.0pt'>
<div>
<div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in'>
<p class=3DMsoNormal><b><span style=3D'font-size:10.0pt;font-family:"Tahoma=
","sans-serif"'>From:</span></b><span
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
doctrine-dev@googlegroups.com [mailto:doctrine-dev@googlegroups.com] <b>On
Behalf Of </b>Jonathan Wage<br>
<b>Sent:</b> Friday, June 26, 2009 5:28 PM<br>
<b>To:</b> doctrine-dev@googlegroups.com<br>
<b>Subject:</b> [doctrine-dev] Re: Late static bindings<o:p></o:p></span></=
p>
</div>
</div>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'>In Doctrine 2.0 the Mod=
elTable
does not exist. Things are pretty different. But, we haven't begun to think
about how or if we will use the late static binding features of php 5.3<br>
<br>
- Jon<o:p></o:p></p>
<div>
<p class=3DMsoNormal style=3D'margin-bottom:10.0pt'>On Fri, Jun 26, 2009 at=
3:40
PM, Sailor <<a href=3D"mailto:salim.semao...@gmail.com">salim.semaoune@g=
mail.com</a>>
wrote:<o:p></o:p></p>
<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><br>
Hi all,<br>
<br>
I know that Doctrine 2.0 is going to work with only one file per<br>
model.<br>
Is it possible that methods within the ModelTable class can be<br>
declared as static methods (ActiveRecord-like) now that PHP 5.3<br>
supports late static bindings ?<br>
<br>
Salim<o:p></o:p></p>
</div>
<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><br>
<br clear=3Dall>
<br>
-- <br>
Jonathan H. Wage (+1 415 992 5468)<br>
Open Source Software Developer & Evangelist<br>
<a href=3D"http://sensiolabs.com">sensiolabs.com</a> | <a href=3D"http://jw=
age.com">jwage.com</a>
| <a href=3D"http://doctrine-project.org">doctrine-project.org</a> | <a
href=3D"http://symfony-project.org">symfony-project.org</a><br>
<br>
You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related question=
s at
<a href=3D"mailto:jonathan.w...@sensio.com">jonathan.w...@sensio.com</a><br=
>
<br>
</div>
</div>
</body>
</html>
------=_NextPart_000_01EB_01C9F686.70668FB0--