Save creates the UserAllowedGroup in the database.
(ctx context.Context)
| 67 | |
| 68 | // Save creates the UserAllowedGroup in the database. |
| 69 | func (_c *UserAllowedGroupCreate) Save(ctx context.Context) (*UserAllowedGroup, error) { |
| 70 | _c.defaults() |
| 71 | return withHooks(ctx, _c.sqlSave, _c.mutation, _c.hooks) |
| 72 | } |
| 73 | |
| 74 | // SaveX calls Save and panics if Save returns an error. |
| 75 | func (_c *UserAllowedGroupCreate) SaveX(ctx context.Context) *UserAllowedGroup { |