# |
Jun 30th 2017, 08:04 |
laahudra |
simple like that |
# |
Jun 30th 2017, 08:03 |
laahudra |
You can now run PHPUnit using: $ vendor/bin/phpunit |
# |
Jun 30th 2017, 08:03 |
laahudra |
no |
# |
Jun 30th 2017, 08:03 |
hmic |
set it up to inform you of the test results |
# |
Jun 30th 2017, 08:03 |
hmic |
you will have some tool running the tests? jenkins? |
# |
Jun 30th 2017, 08:02 |
laahudra |
HEllo m8's! I jave implemented Unit Tests with cake v3.x, all loks good, but I want to send email with test results when they finish, do you have any suggestions? Someon done something similar? |
# |
Jun 30th 2017, 07:47 |
hmic |
moin |
# |
Jun 30th 2017, 04:25 |
aproapedelune |
well, i ll just enjoy the gaps in the table, then :)). ty! and good night! |
# |
Jun 30th 2017, 04:23 |
savant |
Not without resetting the autoincrement |
# |
Jun 30th 2017, 04:23 |
savant |
Nope |
# |
Jun 30th 2017, 04:22 |
aproapedelune |
is there any way to insert in table without any gaps in id? it s auto_increment, but is it possible to add in table at the first free id? |
# |
Jun 30th 2017, 04:13 |
aproapedelune |
thank you! |
# |
Jun 30th 2017, 04:13 |
cpierce |
atta boy! |
# |
Jun 30th 2017, 04:13 |
savant |
It'll get released when I'm good and drunk |
# |
Jun 30th 2017, 04:13 |
cpierce |
enjoy your beers |
# |
Jun 30th 2017, 04:12 |
cpierce |
:P |
# |
Jun 30th 2017, 04:12 |
cpierce |
@savant don't leave me hanging brother! |
# |
Jun 30th 2017, 04:12 |
cpierce |
i'm going to bed |
# |
Jun 30th 2017, 04:12 |
cpierce |
should fix you right up! |
# |
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 |