Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
1.3 saveAll() with validation option "only" or "first" works well with associated data. #210
saveAll() did set null foreign key when it just validates.
For example, I've assigned numeric validation on the hasMany side model and validation did fail with this behavior.
$data = array( 'Post' => array( 'title' => 'Hello world', ), 'Keyword' => array( array( 'word' => 'foo', ), array( 'word' => 'bar', ), ... ), );
I've changed this not to set foreign key when it just validation.