ardent
ardent copied to clipboard
Cannot use Ardent when testing saving a Model related to another Model
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 ?
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.