# |
Jun 30th 2017, 04:12 |
cpierce |
`$this->primaryKey('id')'` |
# |
Jun 30th 2017, 04:12 |
savant |
In the initialize and validate stuff |
# |
Jun 30th 2017, 04:12 |
cpierce |
because your schema is id not ID |
# |
Jun 30th 2017, 04:12 |
savant |
Yeah change it to lowercase |
# |
Jun 30th 2017, 04:12 |
cpierce |
not that it should matter on create but it's missing the primaryKey |
# |
Jun 30th 2017, 04:11 |
aproapedelune |
:O |
# |
Jun 30th 2017, 04:11 |
cpierce |
``` $validator ->integer('ID') ->allowEmpty('ID', 'create'); ``` ^-- you don't have one of those bro |
# |
Jun 30th 2017, 04:11 |
cpierce |
ID vs id? |
# |
Jun 30th 2017, 04:10 |
cpierce |
in the controller part? |
# |
Jun 30th 2017, 04:10 |
cpierce |
shouldn't it be plural? |
# |
Jun 30th 2017, 04:10 |
savant |
Can you screenshot your database schema? |
# |
Jun 30th 2017, 04:09 |
savant |
Seems fine |
# |
Jun 30th 2017, 04:09 |
aproapedelune |
https://gist.github.com/anonymous/6462ef1b7227af3be9c145985a4dbe08 |
# |
Jun 30th 2017, 04:09 |
cpierce |
https://gist.github.com/cpierce/11e60c9e7bb1e8f3baa20832ca7032c5 |
# |
Jun 30th 2017, 04:09 |
savant |
I'm curious if the schema is hard coded somehow |
# |
Jun 30th 2017, 04:08 |
savant |
And it's already loaded via modelawaretrait |
# |
Jun 30th 2017, 04:08 |
savant |
Eh same thing |
# |
Jun 30th 2017, 04:08 |
cpierce |
yeah the controller looks right ... i'd use TableRegistry::get( but ... |
# |
Jun 30th 2017, 04:07 |
savant |
Can you gist the table class? |
# |
Jun 30th 2017, 04:06 |
savant |
Ah okay sorry didn't scroll :P |
# |
Jun 30th 2017, 04:05 |
savant |
Him/her/them :) |
# |
Jun 30th 2017, 04:05 |
aproapedelune |
I gisted them both. The controller is under the add,ctp file |
# |
Jun 30th 2017, 04:05 |
cpierce |
I'll help him savant ... got drink beer! |
# |
Jun 30th 2017, 04:05 |
savant |
Gist that |
# |
Jun 30th 2017, 04:05 |
savant |
In src/Controller/AnalizeController.php |
# |
Jun 30th 2017, 04:04 |
savant |
I want the controller code |
# |
Jun 30th 2017, 04:04 |
aproapedelune |
Should I implement the add method anywhere else? |
# |
Jun 30th 2017, 04:02 |
savant |
Not the template |
# |
Jun 30th 2017, 04:02 |
savant |
No the controller action |
# |
Jun 30th 2017, 04:01 |
aproapedelune |
https://gist.github.com/anonymous/f5530048aaf0d8565c94ee8933168fe7 |
# |
Jun 30th 2017, 04:01 |
savant |
@aproapedelune what's the code in your add action? |
# |
Jun 30th 2017, 04:00 |
cpierce |
who could tell without looking at the code .... |
# |
Jun 30th 2017, 03:59 |
cpierce |
you got venmo ... beers on me bro |
# |
Jun 30th 2017, 03:59 |
aproapedelune |
hey guys, how are you? I just realised my CRUD operations don t work. They have no action but redirecting me in an error page. :flushed: |
# |
Jun 30th 2017, 03:59 |
cpierce |
but i'd rather use a stable release of course :P |
# |
Jun 30th 2017, 03:58 |
cpierce |
dev-master like a charm |
# |
Jun 30th 2017, 03:58 |
cpierce |
it worked btw |
# |
Jun 30th 2017, 03:57 |
savant |
Should automate that like I did for dokku... |
# |
Jun 30th 2017, 03:57 |
cpierce |
appreciate you as always jose |
# |
Jun 30th 2017, 03:57 |
savant |
Hard to make release notes on my phone :( |
# |
Jun 30th 2017, 03:57 |
cpierce |
that'd be awesome |