Because there have been significant changes and improvements in the
architecture, the API is quite different now.
Most projects that don't interact with Query Writers directly will
probably continue to work. Note however that Bean Formatters need
to implement one additional method called getAlias() or they can
simply extends the RedBean_DefaultBeanFormatter which provides
a convenient implementation. Furthermore if your project uses one of
the classes that has been deprecated you'll need to download and
install
it manually (github or red bean plus pack).
I myself upgraded all of my projects without problems. I only had to
make my formatters extend the default bean formatter.
Cheers,
Gabor
> --
> You received this message because you are subscribed to the Google Groups
> "redbeanphp" group.
> To post to this group, send email to redbe...@googlegroups.com.
> To unsubscribe from this group, send email to
> redbeanorm+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redbeanorm?hl=en.
>
From: gabor de mooij <gabord...@gmail.com>
Date: August 7, 2011 11:00 PM
To: redbe...@googlegroups.com
Subject: Gotchas when upgrading to from 1.2.7L to 1.3L and then to 2.0 on PHP 5.2
Hi there,
Because there have been significant changes and improvements in the
architecture, the API is quite different now.
Most projects that don't interact with Query Writers directly will
probably continue to work. Note however that Bean Formatters need
to implement one additional method called getAlias() or they can
simply extends the RedBean_DefaultBeanFormatter which provides
a convenient implementation. Furthermore if your project uses one of
the classes that has been deprecated you'll need to download and
install
it manually (github or red bean plus pack).
I myself upgraded all of my projects without problems. I only had to
make my formatters extend the default bean formatter.
Cheers,
Gabor
On Sun, Aug 7, 2011 at 4:12 PM, michaelangela design
From: michaelangela design <des...@michaelangela.name>
Date: August 7, 2011 10:12 PM
To: redbeanphp <redbe...@googlegroups.com>
Subject: Gotchas when upgrading to from 1.2.7L to 1.3L and then to 2.0 on PHP 5.2
Hi there,--
I am looking at moving some projects up from 1.2.7L to, hopefully, 2.0. They only use standard techniques like R::dispense, R::load, and FUSE models. One project used formatted ID fields which would need a code change to work. Other than extending Redbean like that, it the API still the same? Do I only need to test with the new 2.0 for most projects or am I looking at some code changes here as well?
Thanks!
From: michaelangela design <des...@michaelangela.name>
Date: August 7, 2011 11:05 PM
To: redbe...@googlegroups.com
Subject: Gotchas when upgrading to from 1.2.7L to 1.3L and then to 2.0 on PHP 5.2
I noted the defautformatter and that will be needed but only on some. Looks like the rest should go smoothly. Thanks for the quick reply!--