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...
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/...
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...
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 ...
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...
4
Solved
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 ...
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?
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...
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...
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...
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...
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...
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...
1
© 2022 - 2024 — McMap. All rights reserved.