fadion / Bouncy

Map Elasticsearch results to Eloquent models
MIT License
71 stars 26 forks source link

Update BouncyTrait.php #14

Closed lixinqi closed 9 years ago

lixinqi commented 9 years ago

Look at the following code: $models = Product::select('id')->get(); foreach ($models as $model) { $model->save(); } After that, only id field is left in product document. In my point view, updateIndex should return true when no field is dirty

fadion commented 9 years ago

Shouldn't Carbon\Carbon be referenced as a fully qualified namespace, like \Carbon\Carbon? Otherwise, nice job!