public function testOrderWithHasManyThrowsExceptionIfNonSequential()
{
$this->assertException('/^Associated records hydrated out of order.*/', function () {
Galleries::find('all', array('order' => array('Images.title' => 'DESC'), 'with' => 'Images'))->to('array');
});
}