# |
May 27th 2016, 19:34 |
ionas |
despite that there is a SiteArticlesFixture.php |
# |
May 27th 2016, 19:34 |
ionas |
Cake\Database\Exception: Cannot describe site_articles. It has 0 columns. |
# |
May 27th 2016, 19:34 |
ionas |
in RulesCheckerIntegrationTests.php there I did add $table = TableRegistry::get('SiteArticles'); - now when running the test I get this error: Cake\Test\TestCase\ORM\RulesCheckerIntegrationTest::testExistsInAllowSqlNulls |
# |
May 27th 2016, 19:33 |
YamakasY |
no people baking cake ? |
# |
May 27th 2016, 19:32 |
YamakasY |
oh lovely people! |
# |
May 27th 2016, 19:24 |
marlinc |
Very nice! I wonder what the conference itself will be like :) |
# |
May 27th 2016, 19:23 |
ionas |
hotel had stable internet and good food |
# |
May 27th 2016, 19:23 |
ionas |
I could take some more card and board games to come down from all the hacking :P â?¦. but the the social climate is great, the workshops were nice (though I will have to re-do the one on collections and toy a lot more to get more into it) |
# |
May 27th 2016, 19:22 |
marlinc |
How's it going so far ionas? |
# |
May 27th 2016, 19:20 |
marlinc |
I wish I could come now but I can't unfortunately.. |
# |
May 27th 2016, 19:19 |
marlinc |
I'm coming tomorrow morning :) |
# |
May 27th 2016, 19:19 |
ionas |
admad marlinc you guys are missing. |
# |
May 27th 2016, 19:19 |
marlinc |
My train just went by the hotel were CakeFest is being held :p |
# |
May 27th 2016, 19:19 |
ionas |
lets see if github will detect that |
# |
May 27th 2016, 19:18 |
admad |
s/and/a |
# |
May 27th 2016, 19:18 |
admad |
You need to reopen and new open which targets 3.next |
# |
May 27th 2016, 19:17 |
ionas |
how to change where a PR goes? https://github.com/cakephp/cakephp/pull/8897#issuecomment-222184715 |
# |
May 27th 2016, 16:52 |
alanderouen_ |
enjoy the weekend :) |
# |
May 27th 2016, 16:41 |
mrcake |
hey all, anyone done a good amount of work w/ friendsofcake/crud |
# |
May 27th 2016, 16:30 |
styks1987 |
I want a json error |
# |
May 27th 2016, 16:30 |
styks1987 |
I am sending accepts header with application/json and serializing data but I still get the php html not authorized error |
# |
May 27th 2016, 16:29 |
nemmons |
thanks. |
# |
May 27th 2016, 16:29 |
nemmons |
but now i see you're right |
# |
May 27th 2016, 16:29 |
nemmons |
I didn't read that as an exclusive condition |
# |
May 27th 2016, 16:29 |
ypnos |
and this chapter http://book.cakephp.org/3.0/en/orm/validation.html#validation-vs-application-rules |
# |
May 27th 2016, 16:29 |
nemmons |
ah. |
# |
May 27th 2016, 16:28 |
ypnos |
read the first sentence here http://book.cakephp.org/3.0/en/orm/validation.html#applying-application-rules |
# |
May 27th 2016, 16:28 |
ypnos |
no during save only rules are checked |
# |
May 27th 2016, 16:27 |
nemmons |
actually, maybe my statement above was wrong. since validator() returns the model's default validator, i'm then attaching a new validation to the default validator. i think that would be triggered by a save |
# |
May 27th 2016, 16:27 |
ypnos |
let me see maybe I can also learn something new |
# |
May 27th 2016, 16:27 |
nemmons |
http://book.cakephp.org/3.0/en/orm/validation.html#validating-data-before-building-entities i mean |
# |
May 27th 2016, 16:27 |
nemmons |
@ypnos thanks but i think that might be contradicted by http://book.cakephp.org/3.0/en/orm/validation.html |
# |
May 27th 2016, 16:27 |
ypnos |
if you use patchEntity or pass data in newEntity, default validation should run |
# |
May 27th 2016, 16:26 |
ypnos |
nemmons validation takes place during mass-assignment. if you create an empty Entity and then fill some values by-hand it will never kick in (afaik) |
# |
May 27th 2016, 16:25 |
nemmons |
if, in a controller, i call `'$this->Table->validator()->notEmpty('some_field');` and then attempt to create and save a new entity without some_field, that won't actually matter, right? because i didn't pass the name of a validator in during my newEntity() call |
# |
May 27th 2016, 16:24 |
nemmons |
just to make sure i understand validation in 3.x |
# |
May 27th 2016, 16:20 |
ypnos |
lol scrap it |
# |
May 27th 2016, 16:18 |
max-86666 |
for the record, ACL are handled the same way :/ |
# |
May 27th 2016, 16:17 |
max-86666 |
at some point i really like to kill him, i have a lot of weird table in there :) |
# |
May 27th 2016, 16:16 |
ypnos |
I'd rather kill the database designer though.. don't forget that the roundtrip etc. you are imposing through this is a real performance killer |
# |
May 27th 2016, 16:15 |
max-86666 |
thx ypnos, that seems perfect |