Log message #4149155

# At Username Text
# Jun 9th 2018, 20:20 josexato I would like something like Courses->StudentsWithGradeHigherThan('90')
# Jun 9th 2018, 20:18 josexato for example I have an association Courses has many Students
# Jun 9th 2018, 20:17 lorenzo how are you calling the custom finder in the association?
# Jun 9th 2018, 20:14 josexato in the table class i define the custom finder and the association that will use that finder
# Jun 9th 2018, 20:13 josexato hello how can I pass a variable to a custom finder in an association?
# Jun 9th 2018, 19:52 narendravaghela use double quotes :slightly_smiling_face:
# Jun 9th 2018, 19:51 narendravaghela echo $this->Form->control("comments.$i.comment");
# Jun 9th 2018, 18:48 joopm echo $this->Form->control('comments.$i.comment');//this seems its does not works
# Jun 9th 2018, 18:48 joopm how can i use variable insted of that constant 0 ?
# Jun 9th 2018, 18:48 joopm echo $this->Form->control('comments.0.comment');
# Jun 9th 2018, 18:48 joopm if i need to add multiple elements in form(for HBM assoc)
# Jun 9th 2018, 18:47 joopm hello
# Jun 9th 2018, 09:17 madbbb @lorenzo thank you!
# Jun 9th 2018, 08:43 lorenzo @madbbb you can add a beforeDelete fallback on the fly from your test method that returns false
# Jun 9th 2018, 08:15 birdy247 morning
# Jun 9th 2018, 08:08 admad @bogdan trying to get 100% coverage is like chasing fool's gold :slightly_smiling_face:
# Jun 9th 2018, 07:47 jurrieb Anyone at Dutch php conference?
# Jun 9th 2018, 07:05 madbbb File uploaded https://cakesf.slack.com/files/UAAC8JMM4/FB437445P/image.png / https://slack-files.com/T053DPNCM-FB437445P-ddeb63c1ef - good morning. I'm trying cover my code with 100% coverage and stuck testing delete method failure. How can I test Flash-andgt;error line? Tried to change id of the record, but it stops at get exception.
# Jun 8th 2018, 21:41 ricksaccous @cnizzardini i've seen people ask that before and i'm not even sure, personally if i work with others i simply don't commit it, but can be a pain not being able to do git add . so it's your call
# Jun 8th 2018, 21:21 cnizzardini For Cake3 migrations, should schema-dump-default.lock be ignored in git?
# Jun 8th 2018, 19:30 Netun0 helping me could be fun!
# Jun 8th 2018, 19:30 Netun0 any bored dev awake? lol
# Jun 8th 2018, 19:28 Netun0 cake 2.x
# Jun 8th 2018, 19:28 Netun0 Hi dudes, I have a problem with cake when a use it to auth from mobile, and all subsequences restful stuffs.
# Jun 8th 2018, 19:03 rightscoreanalysis very helpful thanks, will pass it on
# Jun 8th 2018, 19:03 dereuromark Some of https://www.dereuromark.de/2012/02/02/more-persistent-sessions-in-cake2-x/ might still apply, but this is 6+ years old obvioulsy
# Jun 8th 2018, 19:02 rightscoreanalysis I'm asking on behalf of someone else who is having this issue
# Jun 8th 2018, 19:02 rightscoreanalysis hmm ok good to know, it is possibly an older version of cake2
# Jun 8th 2018, 18:56 dereuromark older versions of cake could, though. the new way is that the session timeout is raised afaik. also make sure the set cookie timeout (which is static) is high enough.
# Jun 8th 2018, 18:55 dereuromark no it wont timeout if you are using the right session config
# Jun 8th 2018, 18:54 rightscoreanalysis If so is there a way to keep the auth session alive programatically
# Jun 8th 2018, 18:49 rightscoreanalysis cake2 ^
# Jun 8th 2018, 18:49 rightscoreanalysis If a single page and controller isn't refreshed but only makes ajax requests will the auth session timeout?
# Jun 8th 2018, 18:32 chrispecoraro I was assuming that the paths followed PSR4 namespace conventions, but I guess not.
# Jun 8th 2018, 18:31 chrispecoraro Is this usually a cache issue? I tried to delete what was in `tmp/cache/` and also run `composer dump-autoload`....
# Jun 8th 2018, 18:31 chrispecoraro But I keep getting that my controller isn't found.
# Jun 8th 2018, 18:29 chrispecoraro ```Router::mapResources('employers', ['prefix'=>'/api/v1/'] );```
# Jun 8th 2018, 18:29 chrispecoraro And then my route is:
# Jun 8th 2018, 18:28 chrispecoraro So I added: ``` App::build(['Controller' => ['/Controller/api/v1/'] ]); ``` to `bootstrap.php`
# Jun 8th 2018, 18:28 chrispecoraro I would like to do: `Controller/api/v1/XXXXController.php` as my path..
# Jun 8th 2018, 18:27 chrispecoraro Hello all! I'm coming into a legacy (2.x) CakePHP codebase from the Laravel world, so I had a question about setting up the Controller directory structure for a RESTful API.