Skip to content

Commit

Permalink
refactor: export relationship decorators from provider
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 1, 2019
1 parent 1df4d21 commit b6c5df2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion providers/DatabaseProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { IocContract } from '@adonisjs/fold'
import { Database } from '../src/Database'
import { Adapter } from '../src/Orm/Adapter'
import { BaseModel } from '../src/Orm/BaseModel'
import { column, computed } from '../src/Orm/Decorators'
import { column, computed, hasOne, hasMany, belongsTo } from '../src/Orm/Decorators'

export default class DatabaseServiceProvider {
constructor (protected $container: IocContract) {
Expand Down Expand Up @@ -40,6 +40,9 @@ export default class DatabaseServiceProvider {
BaseModel,
column,
computed,
hasOne,
hasMany,
belongsTo,
}
})
}
Expand Down

0 comments on commit b6c5df2

Please sign in to comment.