Closed josejulio closed 7 years ago
While R::findOneOrDispense('buy_from', 'key = :key', array('key' => 'disable_type_checking')); Doesn't throw any exception and creates the table buy_from.
That seems to me beeing a bug.
Is there any reason that _ isn't officially supported? I don't recall reading about it on the site.
See here:
In RedBeanPHP, the underscore '_' is used to denote a relation between two tables.
http://www.redbeanphp.com/index.php?p=/prefixes -> "Prefixes"
$page = R::dispense( 'cms_page' ); //invalid: _
http://www.redbeanphp.com/index.php?p=/crud -> "Conventions"
I don't know how i missed that part, thank you!
R::findOneOrDispense('buy_from', 'key = :key', array('key' => 'disable_type_checking'));
Doesn't throw any exception and creates the table buy_from.
@gabordemooij, isn't this a bug?
Okay, sorry my fault, I will look into this.
This issue has been fixed in the master branch.
Will throw
'RedBeanPHP\RedException' with message 'Invalid type: buy_from'
While
Doesn't throw any exception and creates the table buy_from.
While
_
isn't officially supported, it works on my sharedList by using this hidden feature. e.g.Is there any reason that
_
isn't officially supported? I don't recall reading about it on the site.