Go to Google Groups Home    doctrine-dev
RE: [doctrine-dev] Re: Late static bindings

Adam Huttler <adam.hutt...@fracturedatlas.org>

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