Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
fe9eacab
Commit
fe9eacab
authored
Jan 17, 2023
by
Ermolaev Timur
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'task-158-fix/cascade-delete' into 'development'
#158
добавил каскадное удаление See merge request
!128
parents
ff13887b
f5ed5ba1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Task.ts
planner-api/src/models/Task.ts
+1
-1
No files found.
planner-api/src/models/Task.ts
View file @
fe9eacab
...
@@ -77,7 +77,7 @@ import { DateTimeTask } from './DateTimeTask';
...
@@ -77,7 +77,7 @@ import { DateTimeTask } from './DateTimeTask';
@
ManyToOne
(()
=>
User
,
(
user
:
{
tasks
:
Task
[]})
=>
user
.
tasks
,{
nullable
:
true
,
cascade
:
true
,
onUpdate
:
'CASCADE'
,
eager
:
true
,})
@
ManyToOne
(()
=>
User
,
(
user
:
{
tasks
:
Task
[]})
=>
user
.
tasks
,{
nullable
:
true
,
cascade
:
true
,
onUpdate
:
'CASCADE'
,
eager
:
true
,})
executor
!
:
User
;
executor
!
:
User
;
@
ManyToOne
(()
=>
Project
,(
project
:{
tasks
:
Task
[]})
=>
project
.
tasks
,{
eager
:
true
,
nullable
:
true
,
onUpdate
:
'CASCADE'
})
@
ManyToOne
(()
=>
Project
,(
project
:{
tasks
:
Task
[]})
=>
project
.
tasks
,{
eager
:
true
,
nullable
:
true
,
onUpdate
:
'CASCADE'
,
onDelete
:
'CASCADE'
})
project
!
:
Project
;
project
!
:
Project
;
@
OneToMany
(()
=>
DateTimeTask
,
(
dateTimeTask
:
{
task
:
Task
})
=>
dateTimeTask
.
task
,{
eager
:
true
,
nullable
:
true
,
onUpdate
:
'CASCADE'
})
@
OneToMany
(()
=>
DateTimeTask
,
(
dateTimeTask
:
{
task
:
Task
})
=>
dateTimeTask
.
task
,{
eager
:
true
,
nullable
:
true
,
onUpdate
:
'CASCADE'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment