Create a new unsaved model instance with attributes *attrs*. ```js let post = blogPosts.new({ title: 'Lorem ipsum' }); post.title; // Lorem ipsum post.id; // null post.isNew(); // true ``` @method new @param type @param attrs @public
(type, attrs)
| 172 | @public |
| 173 | */ |
| 174 | new(type, attrs) { |
| 175 | return this._instantiateModel(dasherize(type), attrs); |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | Create a new model instance with attributes *attrs*, and insert it into the database. |