MongolidLaravel\MongolidModel::firstOrNew PHP 메소드

firstOrNew() 공개 정적인 메소드

Gets the first entity of this kind that matches the query. If no document was found, a new entity will be returned with the _id field filled.
public static firstOrNew ( mixed $id ) : ActiveRecord
$id mixed Document id.
리턴 Mongolid\ActiveRecord
    public static function firstOrNew($id)
    {
        return static::callMockOrParent('firstOrNew', func_get_args());
    }