Re: [PHP] $this = new Class();

2009-05-07 Thread Richard Quadling
2009/4/30 Olivier Lalonde : > Hi all, > > Since I can't do $this = new Class(); within my class (it gives an > error), I was looking for ways to get the same result by other means. > > I am actually working on an ORM and trying to implement lazy loading. > > $book = $orm->getBook('id'); // returns

Re: [PHP] $this = new Class();

2009-05-07 Thread Richard Quadling
2009/5/7 Richard Quadling : > 2009/4/30 Olivier Lalonde : >> Hi all, >> >> Since I can't do $this = new Class(); within my class (it gives an >> error), I was looking for ways to get the same result by other means. >> >> I am actually working on an ORM and trying to implement lazy loading. >> >> $b