# |
Mar 12th 2019, 09:26 |
neon1024 |
Well, that’s a handy link! Thanks @acosonic |
# |
Mar 12th 2019, 09:17 |
acosonic |
There is even some official docs... https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/php-cakephp-tutorial.html |
# |
Mar 12th 2019, 09:16 |
acosonic |
Thanks, one more question. Anyone have experience with "serverless" and cakephp? |
# |
Mar 12th 2019, 09:14 |
neon1024 |
I tend to drop these into every project in most instances |
# |
Mar 12th 2019, 09:14 |
neon1024 |
muffin/slug |
# |
Mar 12th 2019, 09:14 |
neon1024 |
foc/search too |
# |
Mar 12th 2019, 09:14 |
neon1024 |
@dereuromark IdeHelper is good too if you’re in PHP Storm |
# |
Mar 12th 2019, 09:13 |
neon1024 |
Stuff like bootstrap-ui, crud, trash |
# |
Mar 12th 2019, 09:13 |
neon1024 |
Most of the ones I use are on this list, but I don’t use all of the ones on the list |
# |
Mar 12th 2019, 09:13 |
neon1024 |
https://github.com/FriendsOfCake/awesome-cakephp |
# |
Mar 12th 2019, 09:12 |
acosonic |
@neon1024 any list you can point me towards? |
# |
Mar 12th 2019, 09:05 |
neon1024 |
I wouldn’t know about boilerplate, but there sure are a set of plugins which I would recommend for any project |
# |
Mar 12th 2019, 09:01 |
acosonic |
Hi everyone, so my team is considering building new project in cakephp3, but not migrating our old ones :) EVER from 2.x so we are wondering, if there are some recommendations about cakephp 3 boilerplate...? |
# |
Mar 11th 2019, 23:12 |
mdotobie |
does anybody know any articles on best practices on when to put a data mutating method on an entity or a table object. I have a general delineation but I’d like to look at other perspectives. |
# |
Mar 11th 2019, 19:16 |
st.steinkuehler |
@jeremyharris I've already looked on the same page. Overlooked it. Thank you. |
# |
Mar 11th 2019, 19:12 |
jeremyharris |
@st.steinkuehler you shouldn’t need to modify request data, but if you do you can maybe use withoutData: https://api.cakephp.org/3.7/class-Cake.Http.ServerRequest.html#_withoutData |
# |
Mar 11th 2019, 18:59 |
st.steinkuehler |
Is there a way to delete data from the request in a controller action? Like this `$this->request->withData('myValue', Null)` <-- does not work |
# |
Mar 11th 2019, 18:54 |
dereuromark |
how can one make decisions in Migration file based on current adapter used? did anyone implement this for their plugin migrations? |
# |
Mar 11th 2019, 18:21 |
jeremyharris |
is_null yeah I think that’s a bug in the migration generation script. Instead, change it to “integer” and use limit INT_TINY on your adapter, e.g. MysqlAdapter::INT_TINY |
# |
Mar 11th 2019, 17:19 |
is_null |
hi all, i inherited a cakephp 3.5 project, running on php 7 and mariadb 10.3, any idea what to do to enable migrations to work with tinyint ? it currently fails as such: https://dpaste.de/Ktxk |
# |
Mar 11th 2019, 17:18 |
martin |
never run the process `yes` alone, because it will use 100% of cpu :P |
# |
Mar 11th 2019, 17:15 |
martin |
cake bake model agreements | yes ? :P |
# |
Mar 11th 2019, 17:05 |
tjkalinowski |
cake bake model agreements --force (how to force overwirte all files ????) |
# |
Mar 11th 2019, 16:20 |
tjkalinowski |
:slightly_smiling_face: |
# |
Mar 11th 2019, 16:20 |
jeremyharris |
it happens to all of us! |
# |
Mar 11th 2019, 16:20 |
tjkalinowski |
:( and 45 minuts of searching for error is gone ..... :( |
# |
Mar 11th 2019, 16:19 |
jeremyharris |
@tjkalinowski I think its a typo, you want to use `conditions` (plural) |
# |
Mar 11th 2019, 16:18 |
jeremyharris |
no I don’t think you can add options at that point |
# |
Mar 11th 2019, 16:18 |
slackebot |
<tjkalinowski> |
# |
Mar 11th 2019, 16:18 |
martin |
but you can’t give options to that finder I quess? |
# |
Mar 11th 2019, 16:18 |
martin |
``` $this->hasOne('ClosestStorePrices', [ 'foreignKey' => 'product_id', 'finder' => 'closestPrice', 'className' => 'StorePrices' ]);``` |
# |
Mar 11th 2019, 16:17 |
jeremyharris |
the $q should be the finder query already, and you can stack on it as you please |
# |
Mar 11th 2019, 16:17 |
jeremyharris |
so the finder is defined on the association definition? if so, you can use what I wrote above and skip the finder as it is already applied |
# |
Mar 11th 2019, 16:16 |
martin |
then you will add an extra finder to the association. But I already added that in the model, |
# |
Mar 11th 2019, 16:15 |
jeremyharris |
do you mean something like this? `$query->contain('Association', function ($q) { return $q->find('closestPrice')->where(['something' => 'else']); })` |
# |
Mar 11th 2019, 16:12 |
martin |
but when I want to do a finder that I use like $q->find(‘closestPrice’, [‘forStore’ => 45]); I can’t do that with a contain? where the finder of de association is that finder? |
# |
Mar 11th 2019, 16:07 |
neon1024 |
My guess if you have one slow endpoint |
# |
Mar 11th 2019, 16:07 |
david |
all my tests goes fine, via postman it never never never has failed |
# |
Mar 11th 2019, 16:07 |
neon1024 |
Build a picture using diagnostic tooling |
# |
Mar 11th 2019, 16:07 |
neon1024 |
Add in some logging, check your performance, try siege, test with postman |
# |
Mar 11th 2019, 16:06 |
neon1024 |
What I would suggest would be to get started |