# |
Sep 30th 2016, 18:34 |
savant |
P |
# |
Sep 30th 2016, 18:34 |
savant |
we've got quite a few codebases to maintain |
# |
Sep 30th 2016, 18:33 |
savant |
yeah |
# |
Sep 30th 2016, 18:33 |
NickBusey |
It does look like HavokInspiration was editing the cake docs just yesterday though, so he(?) is around at least |
# |
Sep 30th 2016, 18:33 |
savant |
sweet sweet |
# |
Sep 30th 2016, 18:33 |
NickBusey |
k, I'll see if I have some time over the weekend to review those PRs |
# |
Sep 30th 2016, 18:27 |
savant |
if you'd like to review those and verify that they are good, I can merge/make a release |
# |
Sep 30th 2016, 18:27 |
savant |
there are a few pull requests open |
# |
Sep 30th 2016, 18:27 |
savant |
I think the maintainer of the plugin - HavokInspiration - is taking a bit of a break from programming atm |
# |
Sep 30th 2016, 18:16 |
NickBusey |
https://github.com/cakephp/migrations/pull/260 |
# |
Sep 30th 2016, 18:16 |
NickBusey |
The last release of CakePHP/migrations was 1.6.3 in Jun. I want the ability to use the new bake seed functionality included in PR 260, without having to point my composer.json to 'master' or something icky |
# |
Sep 30th 2016, 18:15 |
savant |
NickBusey: what are you asking? |
# |
Sep 30th 2016, 18:13 |
NickBusey |
anyone know what the word is on a new migrations release? Specifically including PR #260 |
# |
Sep 30th 2016, 18:00 |
inoas |
see you around guys |
# |
Sep 30th 2016, 17:58 |
dereuromark |
how do I increase the defaults for https://easyengine.io/tutorials/php/increase-file-upload-size-limit/ on cakebox? Didnt find any docs |
# |
Sep 30th 2016, 17:45 |
wouter0100 |
Hmm, yeah. Thanks, I'll dive some more into it myself, :-) |
# |
Sep 30th 2016, 17:43 |
inoas |
I still don't know enough about the schema requirements to be of help |
# |
Sep 30th 2016, 17:42 |
wouter0100 |
Hmm, thx. I want to seperate the subscription stuff from the product tables, so I'm able to build a centralized place to manage all the subscriptions form the user. |
# |
Sep 30th 2016, 17:42 |
inoas |
e.g. buildRules |
# |
Sep 30th 2016, 17:42 |
inoas |
in general I think you can do complex rules within... well rules |
# |
Sep 30th 2016, 17:41 |
inoas |
but maybe that helps |
# |
Sep 30th 2016, 17:41 |
inoas |
I have no clue about STI and CTI |
# |
Sep 30th 2016, 17:41 |
inoas |
question is why you want to do that ;) |
# |
Sep 30th 2016, 17:41 |
inoas |
if you insert the keys manually it should |
# |
Sep 30th 2016, 17:41 |
inoas |
maybe in one atomic update |
# |
Sep 30th 2016, 17:41 |
inoas |
not sure if it works with auto increment |
# |
Sep 30th 2016, 17:40 |
inoas |
but if you do foreign key enforcement by the database |
# |
Sep 30th 2016, 17:40 |
wouter0100 |
I want to abstract the subscription from the Product1 and Product2 tables, because I'm going to create much more products. |
# |
Sep 30th 2016, 17:40 |
inoas |
you simply put the foreign keys in both tables |
# |
Sep 30th 2016, 17:40 |
inoas |
Well you can do A hasOne B + B hasOne A |
# |
Sep 30th 2016, 17:39 |
wouter0100 |
I've currently stored the product type (eg. Product1 or Product2) together with it's ID in the subscription, but I don't know how to set this up in Cake so it's able to understand the relation. |
# |
Sep 30th 2016, 17:38 |
wouter0100 |
Yeah, something like that! And Product1 hasOne Subscription. |
# |
Sep 30th 2016, 17:38 |
inoas |
Subscription HasToHave(Product1 XOR Product2)? |
# |
Sep 30th 2016, 17:38 |
inoas |
you want to be xor? |
# |
Sep 30th 2016, 17:37 |
inoas |
don't really understand the hasOne question |
# |
Sep 30th 2016, 17:37 |
inoas |
documents(id, revision_id), elements(id, revision_id) documents BTM elements ON document_id, document_revision_id, element_id |
# |
Sep 30th 2016, 17:37 |
wouter0100 |
Is there any way to create 2 hasOne's to eachother, but 1 could be to another table? For example, a Subscription has one Product1 or Product2. And Product1 has one Subscription and Product2 has one Subscription? How to implement this the right way? |
# |
Sep 30th 2016, 17:36 |
inoas |
We could use in an asymmetrical BTM assoc |
# |
Sep 30th 2016, 17:35 |
inoas |
Question: Would targetBindingKey for belongsToMany be a good idea? |
# |
Sep 30th 2016, 17:35 |
inoas |
today we learned alot about crud and the orm in our office - cause we had to ;) |
# |
Sep 30th 2016, 17:34 |
inoas |
I really don't like for instance the cakephp time stuff having traits mixing static and non static, maybe even abstract and non abstract functions |