mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-18 15:49:54 -04:00
ORM::factory() in K24 does not allow you to specify an alternate key
for lookup. So instead of doing:
ORM::factory("foo", array("some_key" => "some_value"))
you have to do:
ORM::factory("foo"->where("some_key", "=" "some_value")->find()
This commit is contained in:
@@ -51,7 +51,7 @@ class module_Core {
|
||||
*/
|
||||
static function get($module_name) {
|
||||
if (empty(self::$modules[$module_name])) {
|
||||
return ORM::factory("module", array("name" => $module_name));
|
||||
return ORM::factory("module")->where("name", "=", $module_name)->find();
|
||||
}
|
||||
return self::$modules[$module_name];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user