Log message #4158104

# At Username Text
# Jul 11th, 14:40 neon1024 Can I mock a result set? I have a method which returns a result set from an `all()` call
# Jul 11th, 14:40 Martin` :P
# Jul 11th, 14:36 neon1024 Perhaps, I have no idea of the context in which you are working.
# Jul 11th, 14:28 Martin` but then I need to create a function thats counts up? I can not simple say it needs to use the position?
# Jul 11th, 14:26 neon1024 Sure, use indexBY
# Jul 11th, 14:25 Martin` when I sort a collection, is it not possible to index by position in collection? :P
# Jul 11th, 14:05 slackebot4 } return $q; });
# Jul 11th, 14:05 james.phillips $query->innerJoinWith('CrmContactRoles', function ($q) use ( $crmRoleId, $role2Org, $pt) { $x = 0; foreach ($crmRoleId as $rId) { $q->orWhere(['CrmContactRoles.crm_role_id' => $rId, "CrmContactRoles.crm_admin_organisation_id" => $ptRip]);
# Jul 11th, 14:04 admad @dereuromark checking
# Jul 11th, 14:04 james.phillips any ideas?
# Jul 11th, 14:04 james.phillips hi....if I have innerJoinWith with a loop inside... how do I generate (CrmContactRoles.crm_role_id = 2 AND CrmContactRoles.crm_admin_organisation_id = 1) OR (CrmContactRoles.crm_role_id = 3 and CrmContactRoles.crm_admin_organisation_id = 1)) I always get (CrmContactRoles.crm_role_id = 2 AND CrmContactRoles.crm_admin_organisation_id = 1) OR (CrmContactRoles.crm_role_id = 3 OR CrmContactRoles.crm_admin_organisation_id = 1))
# Jul 11th, 14:03 dereuromark @admad Are you ok with the hybridauth addition? We would need it to get the flash message and login count (back) for non-form login.
# Jul 11th, 14:02 admad that's the only reason I would work on code from the Jurassic age
# Jul 11th, 14:01 admad atoning for your sins?
# Jul 11th, 14:01 verax5 What am I doing with my life
# Jul 11th, 14:01 verax5 god
# Jul 11th, 13:51 josbeir taking a trip down memory lane
# Jul 11th, 13:50 josbeir => https://book.cakephp.org/1.3/en/The-Manual/Developing-with-CakePHP/Controllers.html
# Jul 11th, 13:50 josbeir If you do not wish to use a Model in your controller, set var $uses = array(). This will allow you to use a controller without a need for a corresponding Model file.
# Jul 11th, 13:50 josbeir try $uses = array();
# Jul 11th, 13:48 josbeir i'm looking if i have some old cake 1.x project on this laptop but cant find any
# Jul 11th, 13:47 josbeir uses = false; should work
# Jul 11th, 13:47 verax5 But it also forced me to create Model class
# Jul 11th, 13:47 verax5 I don't even need model
# Jul 11th, 13:46 verax5 https://kopy.io/JMoxd
# Jul 11th, 13:46 josbeir damn, thats some legacy stuff :P
# Jul 11th, 13:46 josbeir and idd, $uses = false; should work :slightly_smiling_face:
# Jul 11th, 13:46 josbeir unsub_controller.php
# Jul 11th, 13:46 verax5 Missing Database Table No Database table for model Unsub (expected "unsubs"), create it first.
# Jul 11th, 13:45 josbeir also verax, if its cake 1.x your controller name must be lowercases and underscored, ROR naming conventions
# Jul 11th, 13:45 admad gonna have a tough time working with nearly a decade old version of a lib :slightly_smiling_face:
# Jul 11th, 13:45 iqu maybe there is something similar 1.1
# Jul 11th, 13:45 admad verax5: try adding `var $uses = false;` to the controller
# Jul 11th, 13:44 iqu verax5: cakephp 3 comes with https://book.cakephp.org/3.0/en/controllers/pages-controller.html
# Jul 11th, 13:44 verax5 If anyone else is willing to help me would be appreciated
# Jul 11th, 13:43 verax5 It's fine
# Jul 11th, 13:43 iqu ok. then i cannot help. sry
# Jul 11th, 13:43 verax5 cake 1.1
# Jul 11th, 13:43 verax5 I'm working with some legacy code here
# Jul 11th, 13:43 verax5 I'm not quite sure mate
# Jul 11th, 13:43 iqu verax5: are you using skeleton app?