Commit 92f10893 authored by Ben Argo's avatar Ben Argo Committed by Jens Segers

Add default property to getIdAttribute (#1098)

Since the function has a check for `! $value` and assigns the MongoDB default of ‘_id’ we should be able to omit the property.
parent 88d53cc0
......@@ -39,7 +39,7 @@ abstract class Model extends BaseModel
* @param mixed $value
* @return mixed
*/
public function getIdAttribute($value)
public function getIdAttribute($value = null)
{
// If we don't have a value for 'id', we will use the Mongo '_id' value.
// This allows us to work with models in a more sql-like way.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment