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 6792959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:02:29+00:00 2026-05-26T18:02:29+00:00

In my new project, I decided that I will use the RedBean ORM system

  • 0

In my new project, I decided that I will use the RedBean ORM system with CodeIgniter PHP Framework.

How can I get all records from a table with a simple relation? I know that I can use R::exec or R::getAll queries, but I want to make sure if there any other solution(s).

TABLE STRUCTURE:

languages

  • id
  • title

categories

  • id
  • language_id
  • title

The field language_id in the table categories is related with the id field in the table languages.

MY GOAL:

SELECT l.title, c.* 
FROM categories AS c 
LEFT JOIN languages AS l 
    ON (c.language_id = l.id)

Any solutions?

  • 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-05-26T18:02:29+00:00Added an answer on May 26, 2026 at 6:02 pm
    list($language1, $language2, $language3) = R::dispense('language', 3);
    $language1->title = "PHP";
    $language2->title = "Python";
    $language3->title = "Ruby";
    
    list($category1, $category2, $category3) = R::dispense('category', 3);
    $category1->title = "CodeIgniter";
    $category2->title = "Django";
    $category3->title = "Rails";
    
    
    R::store($language1);R::store($language2);R::store($language3);
    R::store($category1);R::store($category2);R::store($category3);
    
    
    $category1->language = $language1;
    $category2->language = $language2;
    $category2->language = $language3;
    
    
    R::store($category1);R::store($category2);R::store($category3);
    
    $categories = $language1->ownCategory;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our current project at work is a new MVC web site that will use
I decided to use log4net as a logger for a new webservice project. Everything
For a new project that I'm doing in PHP I've created an SQLMethods class
I'm working on a new big PHP / Symfony 2 project and decided to
I recently started a new webforms project and decided to separate the business classes
I'm working on a new project and for some reason decided to create two
I've spent some time with new Database project in VS 2008 and decided to
My new project is targeting an embedded ARM processor. I have a build system
We are bringing a new project in house and whereas previously all our work
Starting a new project and would like to use one of the MVC framworks.

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.