Gotchas when upgrading to from 1.2.7L to 1.3L and then to 2.0 on PHP 5.2

7 views
Skip to first unread message

michaelangela design

unread,
Aug 7, 2011, 10:12:17 AM8/7/11
to redbeanphp
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!
--
Michael Wills
developer
michaelangela design | michaelangela.wordpress.com | michaelangela.name


gabor de mooij

unread,
Aug 7, 2011, 11:00:01 AM8/7/11
to redbe...@googlegroups.com
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

> --
> 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.
>

michaelangela design

unread,
Aug 7, 2011, 11:05:05 AM8/7/11
to redbe...@googlegroups.com
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!

--
Michael Wills
developer
michaelangela design | michaelangela.wordpress.com | michaelangela.name






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!
--

michaelangela design

unread,
Aug 7, 2011, 11:18:22 AM8/7/11
to redbe...@googlegroups.com
The one I am on now worked after I removed an unused kickstartdev, since I had started using the R facade anyway. Other than that no issues so far...

Thanks much!

--
Michael Wills
developer
michaelangela design | michaelangela.wordpress.com | michaelangela.name






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!


--
Reply all
Reply to author
Forward
0 new messages