new()
This method will fire the
creating and saving hooks.
Also the created and saved hooks if it is persisted. If you want to create a new model
without firing the hooks use make()Usage
import { useRepo } from 'pinia-orm'import User from './models/User'const userRepo = useRepo(User)// Make a model with default values which will be persisteduserRepo.new()// Make a model with default values which will not be persisteduserRepo.new(false)Typescript Declarations
function new(persist = true): Model | nullTable of Contents