# |
Oct 5th 2016, 11:12 |
Neon1024 |
We too redirect all traffic to https://example.com |
# |
Oct 5th 2016, 11:12 |
Neon1024 |
My colleague Dan uses Letsencrypt |
# |
Oct 5th 2016, 11:04 |
birdy247 |
Did you have to change the virtual hosts files |
# |
Oct 5th 2016, 11:04 |
birdy247 |
you are using lets encrypt i seem to remember |
# |
Oct 5th 2016, 11:03 |
dakota |
I always redirect to https://domain.com |
# |
Oct 5th 2016, 11:03 |
birdy247 |
on in the SSL virtual hosts file |
# |
Oct 5th 2016, 11:03 |
birdy247 |
In the non SSL virtual hosts file |
# |
Oct 5th 2016, 11:02 |
birdy247 |
2) Where should I add the redirect? |
# |
Oct 5th 2016, 11:02 |
birdy247 |
1) Is that a good idea? - I always thought so from a SEO perspective |
# |
Oct 5th 2016, 11:01 |
birdy247 |
I had previously redirected al www.domain.com traffic |
# |
Oct 5th 2016, 11:01 |
birdy247 |
except my site is accessible by www.domain.com |
# |
Oct 5th 2016, 11:01 |
birdy247 |
all works great |
# |
Oct 5th 2016, 11:01 |
birdy247 |
and the installation |
# |
Oct 5th 2016, 11:01 |
birdy247 |
I followed the setup |
# |
Oct 5th 2016, 11:00 |
birdy247 |
is anyone else using letsencrypt? |
# |
Oct 5th 2016, 10:12 |
crazycoder |
can i catch all the event of Model.afterSave? or should i add a callback for Table1.afterSave Table2.afterSave |
# |
Oct 5th 2016, 10:08 |
crazycoder |
in a listener..then specify the login inside this listener without adding code inside each afterSave |
# |
Oct 5th 2016, 10:08 |
crazycoder |
i mean... should i add the event Model.afterSave |
# |
Oct 5th 2016, 10:08 |
crazycoder |
guys i need to listen to many table (afterSave) my question is....should i add a call inside each afterSave....or can i detect them outside ? |
# |
Oct 5th 2016, 10:07 |
crazycoder |
hello |
# |
Oct 5th 2016, 10:05 |
wouter0100 |
gpapkala, hmm. Seems to make sense, thanks! |
# |
Oct 5th 2016, 09:57 |
gpapkala |
I might be speaking to much of cake2 - so please anyone correct me if I am wrong :slightly_smiling_face: |
# |
Oct 5th 2016, 09:57 |
gpapkala |
so you can split in into hasMany relations from both sides orders hasMany orderProduct and products hasMany orderProduct and the join table can be itâ??s own entity then (with belongsTo relations to orders and products) |
# |
Oct 5th 2016, 09:55 |
wouter0100 |
gpapkala, that's correct. And I want a relation from another table to that many-to-many join table. |
# |
Oct 5th 2016, 09:54 |
gpapkala |
if I understand you correctly, you have many-to-many relation between products and orders? |
# |
Oct 5th 2016, 09:53 |
wouter0100 |
gpapkala, oh, wait. let out a part: when you want to setup a relation to the join table. How would you call that? |
# |
Oct 5th 2016, 09:52 |
wouter0100 |
gpapkala, ehhm, wait. True |
# |
Oct 5th 2016, 09:51 |
gpapkala |
id? |
# |
Oct 5th 2016, 09:49 |
wouter0100 |
What's the "cake" convension to name a id primary key in a join table for a belongsToMany? For example, products and orders are joined together using the orders_products table, how would I call the primary key? order_product_id or orders_product_id? |
# |
Oct 5th 2016, 09:47 |
flangofas |
You are welcome. |
# |
Oct 5th 2016, 09:46 |
dariolap |
Ok thanks @ndm @flangofas |
# |
Oct 5th 2016, 09:43 |
ndm |
https://github.com/cakephp/cakephp/issues/9438 |
# |
Oct 5th 2016, 09:42 |
ndm |
No, you can't. |
# |
Oct 5th 2016, 09:42 |
dariolap |
Then, i can't ignore it when i save entity? |
# |
Oct 5th 2016, 09:42 |
flangofas |
@ndm thanks :slightly_smiling_face: |
# |
Oct 5th 2016, 09:41 |
flangofas |
@dariolap Sry, I thought you meant accessible fields :slightly_smiling_face: |
# |
Oct 5th 2016, 09:39 |
ndm |
@dariolap @flangofas accessors and accessibility are two different things... you can't disable accessors, if your entity has them defined, then they are being used. |
# |
Oct 5th 2016, 09:38 |
Speud |
why when we try to save (edit) associative model, the validator rule is running, it should not ? |
# |
Oct 5th 2016, 09:37 |
flangofas |
after patchEntity if you set the field to be not accessible, then you shouldn't see it in the dirty fields. |
# |
Oct 5th 2016, 09:26 |
dariolap |
flangofas, I do it. But after patchEntity I have same result: accessor is called |
# |
Oct 5th 2016, 09:21 |
jay |
Tyvm :slightly_smiling_face: |