redbean Questions

1

Solved

While using PHP RedBean on a project, PHPStan reports problems like this one: 87 Access to an undefined property RedBeanPHP\OODBBean::$token. This is happening because RedBean's OODBBean class u...
Uniformitarian asked 8/3, 2019 at 11:15

4

Solved

I was hoping for an example on how to bulk insert new "beans" in readbeanphp without looping over each instance. It shows an example creating and saving a beans here: http://redbeanphp.com/manual/...
Valentinevalentino asked 8/10, 2012 at 17:30

9

Solved

I'm trying to output lists of objects as json and would like to know if there's a way to make objects usable to json_encode? The code I've got looks something like $related = $user->getRelatedU...
Hamza asked 15/1, 2011 at 2:46

2

Solved

There is a convenience function in RedBeanPHP ORM for ceating dates. $time = R::isoDateTime(); How can I set a time zone? The default function does not return the time of the machine on which ...
Fustanella asked 4/5, 2017 at 13:54

2

Solved

I am currently using RedBean version 3.5. I think I would like to move to the latest version of RedBean, version 4. I have found no documentation about upgrade process, other than an indication it...
Bunnell asked 21/8, 2014 at 4:16

4

Solved

I would like to know whether Redbean ORM can be used for performance oriented scenarios like social networking web apps or no and is it stable even if thousands of data are pulled by multiple...
Jefe asked 14/10, 2011 at 8:38

1

I have a simple web app that I've been building using redbean PHP which has a really simple structure with three bean types: areas buildings persons All relationships are exclusive 1:Many. So, a ...
Crinkumcrankum asked 6/1, 2016 at 1:12

2

Solved

How to run following sql by RedBean? INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9); Should I use loop or RedBean support batch insert?
Acrylic asked 24/8, 2013 at 7:52

2

If one post has many comments, and the comments are essentially the same as posts (e.g. they have a title, pictures and audio etc.) should I create two tables or just one? For example, if I only u...
Attorneyatlaw asked 28/8, 2012 at 2:19

2

Solved

If you use RedBean ORM, do you need to add a primary key named "id" to every table in your database? In my db I have a few tables that have primary keys pairs of 2 or 3 fields, or primary keys wit...
Interposition asked 4/3, 2012 at 12:17

1

Solved

I'm using Redbean as an ORM for my php-application. Every user (employee in this situation), has to have a password in order to login, and I thought i'd generate one for them, so they don't have t...
Capful asked 25/7, 2013 at 22:3

1

Solved

I've been trying to use RedBean ORM (http://redbeanphp.com) to implement UserInterface and UserProviderInterface of the Silex Security Provider Package. Because of the way the RedBean ORM handles...
Whitlow asked 14/3, 2013 at 3:6

1

Solved

i used webgrind and xdebug to messure my site performance. 85% of page loading time is taken for the function php::PDO->__construct (about 1 second) ... this is unacceptable. can i somehow opti...
Hardheaded asked 1/3, 2013 at 15:16

2

Solved

I'm writing some software that requires storing items in a database, the items need to have a 'priority' so we end up with ID | Name | Priority --------+--------------+---------- 1 | Pear | 4 2...
Unmeriting asked 12/1, 2012 at 16:40

2

Solved

I am making a WebService in php which my website will use to query for information with Ajax calls. At first i just did it the standard way with the built in php mysql lib, and wrote all the query...
Capitulum asked 20/5, 2012 at 16:35

1

Solved

I like the idea of using FUSE models for validation in RedbeanPHP. My applications sometimes require accepting data through multiple sources (form, file, etc.), so putting the validation on the ac...
Lax asked 26/4, 2012 at 0:31

4

Solved

From this code: $toolbox = RedBean_Setup::kickstartDev("mysql:*****************"); $r = $toolbox->getRedBean(); $test = $r->dispense("test"); $test->nom = 'Test #1'; $test->date = '2...
Ramiah asked 9/7, 2010 at 13:19

1

I'm using RedBean ORM to write some code and I was wondering if i can load/retrive only some fields from db table. I know there is a load method but it gives whole table as bean. I wish to get only...
Petrol asked 29/6, 2011 at 13:51
1

© 2022 - 2024 — McMap. All rights reserved.