ardent icon indicating copy to clipboard operation
ardent copied to clipboard

Cannot use Ardent when testing saving a Model related to another Model

Open rafaeladel opened this issue 12 years ago • 1 comments

When i try to carry out this test : https://gist.github.com/rafaeladel/6497954

I get the following error : https://gist.github.com/rafaeladel/6497977

I guess carrying out this in the test $user->posts()->save($post) .. Doesn't return true or false in Ardent ?

rafaeladel avatar Sep 09 '13 16:09 rafaeladel

As it's obvious by the test output, save() returns what was saved, not a boolean. I'll investigate what should be done, since this is based on Eloquent's behaviour.

igorsantos07 avatar Oct 13 '13 05:10 igorsantos07