Create Models when using Composer
masterWhen using RedBeanPHP via Composer, you must adjust how you define Models due to namespacing requirements.
- Instead of extending
RedBean_SimpleModel, you must extend\RedbeanPHP\SimpleModel. - You must specify the namespace for
SimpleModel. - To use the
R::static methods inside your Model, you should includeuse \RedbeanPHP\R;at the top of your file.