orm
orm copied to clipboard
Fuel PHP Framework - Fuel v1.x ORM
I hope this is a bug and not a feature, because the latest version of the ORM doesn't cache the result of eager-loading `has_many` relations (and probably `many_many` as well)...
Would it be a problem if intra-package class references were made absolute so that they can be extended through the `Autoloader` mechanism in `bootstrap.php`? I am referring mainly to the...
This replaces `substr` by `mb_substr`. My specific case happened with a `varchar(250)` field, and a string that was longer. The 250th and 251th bytes of the string were an UTF-8...
im have Relation protected static $_has_many = array( 'translations' => array( 'key_from' => 'id', 'model_to' => 'Model_Country_Translation', 'key_to' => 'country_id', 'cascade_save' => true, 'cascade_delete' => true, ) ); ---------------Model_Country_Translation protected...
Right now, when relating models, there's no way of using a specific table view for the related model. It would be a nice feature to be able to do something...
If a model exists where 'id' is not a column and is replaced with any number of other columns as the primary key (disregarding the necessary temporal_start and temporal_end columns...
I have the code like below. ``` Model_Test { ... 'details' => [ 'key_from' => 'id', 'model_to' => 'Model_Child', 'key_to' => 'parent_id', 'cascade_save' => true, ], ... } Model_Child {...
I have an ORM query for a related object ("base"), which looks like this: $class::query()->related('base'); I want to add a condition in the query like so: ->where(\DB::expr('DATE(base.created)'), $date_variable), but because...
This error is thrown, when I try to call dump_tree function with as_object set to true. In this model EAV is set. The problem is that the eav getter does...
Assume two models, `\Model\Record` and `\Model\Group`, with a `\Model\Record belongs_to \Model\Group`, `\Model\Group has_many \Model\Record`. When doing something like the following: ``` php