Log message #4101518

# At Username Text
# Dec 6th 2017, 13:31 jkpatel291289 * customer table model
# Dec 6th 2017, 13:30 jkpatel291289 In my Customer table I want to use beforesave method to set company_id = 1. how can i do this?
# Dec 6th 2017, 12:34 hmic if you want to count too, you can as easily have a count field in that pivot table for the purpose
# Dec 6th 2017, 12:33 hmic as it can only be used to count on the relation, you should not set this up as a belongstomany (through) relation in cake though
# Dec 6th 2017, 12:33 admad it's just a has many in that case
# Dec 6th 2017, 12:33 hmic but it makes not much sense usually
# Dec 6th 2017, 12:33 hmic it is possible to have duplicates in a pivot table
# Dec 6th 2017, 12:21 frazr ugh, hate this lack of specifications
# Dec 6th 2017, 12:21 frazr Guess i'll have to treat is as hasMany then
# Dec 6th 2017, 12:11 frazr :)
# Dec 6th 2017, 12:11 frazr but my boss said, do this, add 2 records in pivot table
# Dec 6th 2017, 12:10 frazr Thought so,
# Dec 6th 2017, 12:08 hmic frazr, because your pivot is menat to be unique on the both foreign keys!
# Dec 6th 2017, 12:05 frazr tried saveStrategy: append, but didnt seem to help, anyone know what i'm doing wrong ?
# Dec 6th 2017, 12:05 frazr trying to add multiple of same ID's in the pivot table, somehow this isn't working, only first ID gets parsed, sort of like this: https://gist.github.com/anonymous/4c19dd3580f50f935688b66291a2a9ea
# Dec 6th 2017, 12:05 admad * en_IN
# Dec 6th 2017, 12:04 admad that isn't required if you do `ini_set('intl.default_locale', 'en_EN');`
# Dec 6th 2017, 11:59 jkpatel291289 to display dates in indian format.
# Dec 6th 2017, 11:59 jkpatel291289 does it mean placing this line Time::setDefaultLocale('en-IN'); in bootstrap?
# Dec 6th 2017, 11:57 jkpatel291289 thanks
# Dec 6th 2017, 11:56 dereuromark @jkpatel291289 See https://book.cakephp.org/3.0/en/core-libraries/time.html#setting-the-default-locale-and-format-string
# Dec 6th 2017, 11:54 hmic jkpatel291289: bootstrap.php
# Dec 6th 2017, 11:53 jkpatel291289 If I want to change date format application wide, whrere should I set the format ?
# Dec 6th 2017, 11:38 rchavik Croogo 3.0.2 Released https://twitter.com/croogo/status/938370024506499074
# Dec 6th 2017, 11:25 neon1024 Ah it’s `Pagintor->options` not `setConfig`
# Dec 6th 2017, 11:04 neon1024 Perhaps it’s that random `0 => 6`
# Dec 6th 2017, 11:04 neon1024 I’m even getting the right config out of the helper, so I’m not really sure what’s upsetting the router
# Dec 6th 2017, 11:02 neon1024 I’ve updated the config though with `$this->Paginator->config(['options' => ['url' => $myUrlArray]]);`
# Dec 6th 2017, 11:02 neon1024 `Error: A route matching "array ( 'page' => false, 'sort' => 'Contents.published', 'direction' => 'desc', 0 => 6, 'controller' => 'Contents', 'action' => 'index', 'type' => 6, 'plugin' => NULL, '_ext' => NULL, )" could not be found.`
# Dec 6th 2017, 11:02 neon1024 I’m updating my paginator urls, and I’m getting a missing route exception
# Dec 6th 2017, 10:56 joopm its enough to have the right sortWhitelist,and properly declareted sort in the view
# Dec 6th 2017, 10:55 joopm okey thank you all your support,its seem i overcomplicated
# Dec 6th 2017, 10:51 joopm yes i declareted the sortWhitelist
# Dec 6th 2017, 10:50 neon1024 Otherwise you really only need to worry about the sortWhitelist
# Dec 6th 2017, 10:50 neon1024 The paginate() method takes an options array which accounts for the default ordering
# Dec 6th 2017, 10:50 neon1024 So far I see you’ve both hard coded it into your query and into your template
# Dec 6th 2017, 10:49 neon1024 Then I agree with hmic, you need to stop declaring the ordering everywhere
# Dec 6th 2017, 10:48 joopm sorting a column
# Dec 6th 2017, 10:45 neon1024 What is it that you’re actually trying to achieve?
# Dec 6th 2017, 10:39 joopm almost i have the same issue https://stackoverflow.com/questions/9131404/how-to-change-paginatorhelper-direction
# Dec 6th 2017, 10:34 joopm what do you suggest how should i do this?