mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 21:21:06 -04:00
In Kohana 2.4, ORM no longer does the find_all() call for us when we
retrieve related ORMs. If we tack a find_all() on the end, it breaks the User_Definition interface so create User_Model::groups() and Groups_Model::users() as glue.
This commit is contained in:
@@ -33,6 +33,10 @@ class Group_Model extends ORM implements Group_Definition {
|
||||
module::event("group_deleted", $old);
|
||||
}
|
||||
|
||||
public function users() {
|
||||
return $this->users->find_all();
|
||||
}
|
||||
|
||||
public function save() {
|
||||
if (!$this->loaded()) {
|
||||
$created = 1;
|
||||
|
||||
Reference in New Issue
Block a user