# |
Jul 4th 2018, 02:45 |
pmoraes |
I'm doing this |
# |
Jul 4th 2018, 02:44 |
pmoraes |
I will have affiliated companies |
# |
Jul 4th 2018, 02:44 |
pmoraes |
or better |
# |
Jul 4th 2018, 02:44 |
pmoraes |
like Companies belongsToMany Companies |
# |
Jul 4th 2018, 02:44 |
pmoraes |
I need to make a relation between the same table |
# |
Jul 4th 2018, 02:44 |
pmoraes |
I'm having a doubt about the HABTM |
# |
Jul 4th 2018, 02:44 |
pmoraes |
Hey guys |
# |
Jul 3rd 2018, 16:32 |
dakota |
You would get the response body using the response object like `(string)$this->_response->getBody()` |
# |
Jul 3rd 2018, 16:32 |
dakota |
https://book.cakephp.org/3.0/en/development/testing.html#testing-a-json-responding-controller |
# |
Jul 3rd 2018, 16:32 |
dakota |
Only saw this now. You don’t check the result of `get` (Since it doesn’t actually return anything) |
# |
Jul 3rd 2018, 16:12 |
admad |
Might also have to update validOptions in view class |
# |
Jul 3rd 2018, 16:11 |
admad |
I believe there's viewbuilder::set options() |
# |
Jul 3rd 2018, 15:50 |
zmurphy |
What's the preferred method of passing something to the AppView class, but not necessarily the view file? I need to pass the current user's id to a helper loaded in AppView's initialize. |
# |
Jul 3rd 2018, 14:33 |
neon1024 |
Or use @dereuromark upgrade shell |
# |
Jul 3rd 2018, 14:20 |
ollibohland |
thanks everybody |
# |
Jul 3rd 2018, 14:19 |
ollibohland |
will double-check all the files and replace them one-by-one. |
# |
Jul 3rd 2018, 14:19 |
ollibohland |
year, update was made by other dev...talked to him and he reported that he did....hmnmmm. thanks guys, think the hint with the skeleton app point to the correct direction |
# |
Jul 3rd 2018, 14:16 |
flavius |
when i upgrade i usually check for differences in the app skeleton as well |
# |
Jul 3rd 2018, 14:16 |
josbeir |
start with replacing the bin folder |
# |
Jul 3rd 2018, 14:15 |
flavius |
yus! |
# |
Jul 3rd 2018, 14:15 |
ollibohland |
think this is the point |
# |
Jul 3rd 2018, 14:15 |
ollibohland |
the skeleton-app is older.... |
# |
Jul 3rd 2018, 14:14 |
flavius |
lulz |
# |
Jul 3rd 2018, 14:14 |
josbeir |
i _always_ use cli |
# |
Jul 3rd 2018, 14:14 |
flavius |
then his app skeleton might be older than 3.5 |
# |
Jul 3rd 2018, 14:14 |
josbeir |
sure |
# |
Jul 3rd 2018, 14:13 |
flavius |
but were you using cli? console commands? :P |
# |
Jul 3rd 2018, 14:13 |
josbeir |
i just did a 3.5->3.6 migration yesterday, except for the deprectation notices all went pretty well |
# |
Jul 3rd 2018, 14:13 |
flavius |
https://github.com/cakephp/app |
# |
Jul 3rd 2018, 14:12 |
flavius |
dont forget about the skeleton app for cake 3.6.6 :slightly_smiling_face: |
# |
Jul 3rd 2018, 14:12 |
ollibohland |
install plain cake 3.6.6 and install app-code into it |
# |
Jul 3rd 2018, 14:12 |
ollibohland |
think we'll do a fresh install |
# |
Jul 3rd 2018, 14:11 |
ollibohland |
well cakephp version and php is the same local and remote, i don't call any custom shell...error occurs when just calling "cake" in the bin-folder so maybe it some php-config-stuff |
# |
Jul 3rd 2018, 14:11 |
flavius |
if you updated from 3.5 you need to read this as well ---- https://book.cakephp.org/3.0/en/appendices/3-6-migration-guide.html |
# |
Jul 3rd 2018, 14:10 |
flavius |
also check https://github.com/cakephp/app/tree/master/config the bootstrap, bootstrap_cli, some things might have changed between 3.5 and 3.6 |
# |
Jul 3rd 2018, 14:10 |
josbeir |
and check out all changelogs since your previous version |
# |
Jul 3rd 2018, 14:10 |
ollibohland |
yeah, think I'll have to do that. |
# |
Jul 3rd 2018, 14:10 |
josbeir |
and that it has the same extensions n all |
# |
Jul 3rd 2018, 14:09 |
josbeir |
make sure your php version etc is the same than the one your web env is using |
# |
Jul 3rd 2018, 14:09 |
josbeir |
i suggest digging a bit deeper in the code and see what is happening |
# |
Jul 3rd 2018, 14:09 |
ollibohland |
not using the console often, same sources work in my local environment |