Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8575127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:37:31+00:00 2026-06-11T19:37:31+00:00

I am trying to implement custom mapping for a database I am using that

  • 0

I am trying to implement custom mapping for a database I am using that was pre-setup with primary key fields like tablename_id instead of just id.

I gleaned this from the 2.0 manual:

class MyBeanFormatter implements RedBean_IBeanFormatter {
    public function formatBeanID($type) {
        return $type.'_id';
    }
}
R::$writer->setBeanFormatter( new MyBeanFormatter );

In 3.0, there is no interface RedBean_IBeanFormatter and no function formatBeanID. The 3.0 manual, doesn’t provide a lot to go on for this. Any help would

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:37:32+00:00Added an answer on June 11, 2026 at 7:37 pm

    Custom mapping is no longer supported in 3.0.
    RedBeanPHP 3 and higher require tables to map 1-to-1 to bean types.
    This is part of the design philosophy of RedBeanPHP. It might be less useful for existing projects but I believe it keeps database mapping more maintainable in the end. This decision also allows RB to provide lots of power features, like deep-copy and exportAll while being relatively light-weight and fast.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement my custom authorize attribute like: public class MyCustomAuth : AuthorizeAttribute
I'm trying to implement a custom log4net logger/logmanager so that I can add a
I am trying to implement a custom tooltip using the javafx.stage.Popup . The sample
I am trying to implement a custom control using a RowClickableGridView class provided on
I'm trying to implement a custom combobox options popup, so that near each option
I'm trying to implement a custom UISlider (subclass of UISlider), that behaves in a
I'm currently trying to implement a custom shell command for Felix using iPOJO. My
I'm trying to implement a custom class for dataannotations that retrieves error messages from
I am trying to implement a custom SecurityToken and SecurityTokenHandler for a STS using
I am trying to implement a custom profile class in C# that inherits System.Web.Profile.ProfileBase.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.