forked from php-task/TaskBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskExecution.orm.xml
More file actions
31 lines (27 loc) · 1.52 KB
/
TaskExecution.orm.xml
File metadata and controls
31 lines (27 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8" ?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="Task\TaskBundle\Entity\TaskExecution" table="ta_task_executions"
repository-class="Task\TaskBundle\Entity\TaskExecutionRepository">
<indexes>
<index columns="schedule_time"/>
</indexes>
<id name="uuid" type="guid">
<generator strategy="NONE"/>
</id>
<field name="handlerClass" type="string" length="255"/>
<field name="workload" type="text"/>
<field name="duration" type="float" nullable="true"/>
<field name="startTime" type="datetime_immutable" nullable="true"/>
<field name="endTime" type="datetime_immutable" nullable="true"/>
<field name="scheduleTime" column="schedule_time" type="datetime_immutable"/>
<field name="exception" type="text" nullable="true"/>
<field name="result" type="text" nullable="true"/>
<field name="status" type="string" length="20"/>
<field name="attempts" type="integer"/>
<many-to-one target-entity="Task\TaskBundle\Entity\Task" field="task">
<join-column name="task_id" referenced-column-name="uuid" on-delete="CASCADE"/>
</many-to-one>
</entity>
</doctrine-mapping>