I am looking to find all objects whether trashed or not using the firstOrNew if possible.
function testMethod() {
$entity = Entity::firstOrNew('uuid' => $uuid); // This doesn't include trashed (as it shouldn't, but is it possible to have it find them?)
$entity->property = $newPropertyValue;
if ($entity->trashed()) {
$entity->restore();
}
$entity->save();
}
@magikman Well, Eloquent fails with composite primary keys in general. Every ORM has some issues with this, even Doctrine forces constraints if you want to use composite keys.