Log message #4227972

# At Username Text
# Feb 20th 2020, 10:42 tomrwaller This is what I have in my add.php.
# Feb 20th 2020, 10:41 tomrwaller echo $this->Form->control('primary_technology_id', ['options' => $primaryTechnologies]);echo $this->Form->control('associated_technologies._ids', ['options' => $associatedTechnologies]);
# Feb 20th 2020, 10:41 tomrwaller That's my RecommendationsTechnologiesTable.
# Feb 20th 2020, 10:40 tomrwaller `$this->belongsTo('Recommendations', [`             `'foreignKey' => 'recommendation_id',`             `'joinType' => 'INNER',`         `]);`         `$this->belongsTo('Technologies', [`             `'foreignKey' => 'technology_id',`             `'joinType' => 'INNER',`         `]);`
# Feb 20th 2020, 10:40 tomrwaller That's my RecommendationsController.
# Feb 20th 2020, 10:40 slackebot           `'targetForeignKey' => 'technology_id',`             `'joinTable' => 'recommendations_technologies',`         `]);`
# Feb 20th 2020, 10:40 tomrwaller `$this->belongsTo('PrimaryTechnologies', [`             `'className' => 'Technologies',`             `'foreignKey' => 'primary_technology_id',`             `'joinType' => 'INNER',`         `]);`         `$this->belongsToMany('AssociatedTechnologies', [`             `'className' => 'Technologies',`             `'foreignKey' => 'recommendation_id',`  
# Feb 20th 2020, 10:39 slackebot Recommendations I have defined two associations to Technologies. Trouble is, the multiselect on add.php doesn't set the Associated Technologies. The Primary Technology does however get set.
# Feb 20th 2020, 10:39 tomrwaller Hey all - would someone mind casting their eyes over my models? Not sure I'm doing this right. I have Technologies and I have Recommendations. They are joined using the recommendations_technologies table. In the recommendation, I have two fields, one is Primary Technology which is a choice of one from the technologies table, and another field Associated Technologies which can be multiple entries from the technology field. So essentially in
# Feb 20th 2020, 09:31 alexdd55976 yeah.. i figured it out.. the docs have been better then expected :)
# Feb 20th 2020, 09:23 challgren @alexdd55976 do you mean when you run `bin/cake bake ….`
# Feb 20th 2020, 08:32 alexdd55976 ah got it
# Feb 20th 2020, 08:30 alexdd55976 is there a way to change bake templates so they won't be overwritten during an update
# Feb 20th 2020, 08:29 christianjohn.gss i'll keep that in mind.
# Feb 20th 2020, 08:28 conehead that it why you include the parent call to make sure the default behavior is still used as well
# Feb 20th 2020, 08:28 christianjohn.gss thank you @conehead :)
# Feb 20th 2020, 08:27 christianjohn.gss that makes sense
# Feb 20th 2020, 08:27 christianjohn.gss ohhhhhh
# Feb 20th 2020, 08:27 christianjohn.gss yes and it came back like the first picture
# Feb 20th 2020, 08:27 conehead probably because you overwrite the default beforeRender mechanics that set this theme
# Feb 20th 2020, 08:26 conehead Did you try what admad said?
# Feb 20th 2020, 08:26 christianjohn.gss because i was suppose to add `$this->viewBuilder()->setTheme(null);` to display the login page in full
# Feb 20th 2020, 08:25 christianjohn.gss i just want to understand why having beforeRender removed the theme
# Feb 20th 2020, 08:25 conehead so where is your problem @christianjohn.gss?
# Feb 20th 2020, 08:00 christianjohn.gss @admad i did not call the parent method inside it
# Feb 20th 2020, 07:59 christianjohn.gss with the method
# Feb 20th 2020, 07:59 slackebot <christianjohn.gss>
# Feb 20th 2020, 07:59 christianjohn.gss without beforeRender method
# Feb 20th 2020, 07:59 slackebot <christianjohn.gss>
# Feb 20th 2020, 07:58 admad did you forget to call parent::beforeRender() ?
# Feb 20th 2020, 07:56 christianjohn.gss i am currently using adminlte theme at cakephp 3 and i was trying to set the default route to a login page, and when i write a beforeRender function, the theme went away even without the setTheme(null)
# Feb 20th 2020, 07:55 christianjohn.gss i got a question
# Feb 20th 2020, 07:55 christianjohn.gss hello
# Feb 20th 2020, 07:42 alexdd55976 morning el duderinos
# Feb 20th 2020, 07:07 javier.villanueva morning all
# Feb 20th 2020, 06:57 serz I don’t understand what kind of config, there is a view in the app folder, config some kind of file
# Feb 20th 2020, 06:34 admad or php fpm
# Feb 20th 2020, 06:34 admad restart your webserver
# Feb 20th 2020, 06:34 admad on in your cake app's config use config name "cake" instead of "php" so that cake uses tmp/sessions folder of your cake app to store session files
# Feb 20th 2020, 06:34 serz thanks for the answer, changed the path to the tmp folder nothing changes
# Feb 20th 2020, 06:32 admad fix the path to folder where php stores session files through php.ini config