You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- replace php annotated entities by xml mapping/validations. Add Interfaces.
- add class entries on configuration for models
- rework install documentation with a Doctrine ORM Configuration chapter
- rework repositories and other services using model classNames & Interfaces
Add these in the config mapping definition (or enable [auto_mapping](https://symfony.com/doc/current/reference/configuration/doctrine.html#mapping-configuration)):
25
+
26
+
```yaml
27
+
# config/packages/doctrine.yaml
28
+
29
+
doctrine:
30
+
orm:
31
+
mappings:
32
+
CleverAgeUiProcessBundle: ~
33
+
```
34
+
35
+
And then create the corresponding entities:
36
+
37
+
```php
38
+
// src/Entity/LogRecord.php
39
+
40
+
use Doctrine\ORM\Mapping as ORM;
41
+
use CleverAge\UiProcessBundle\Entity\LogRecord as BaseLogRecord;
42
+
43
+
#[ORM\Entity]
44
+
#[ORM\Table]
45
+
class LogRecord extends BaseLogRecord
46
+
{
47
+
}
48
+
```
49
+
50
+
```php
51
+
// src/Entity/ProcessExecution.php
52
+
53
+
use Doctrine\ORM\Mapping as ORM;
54
+
use CleverAge\UiProcessBundle\Entity\ProcessExecution as BaseProcessExecution;
55
+
56
+
#[ORM\Entity]
57
+
#[ORM\Table]
58
+
class ProcessExecution extends BaseProcessExecution
59
+
{
60
+
}
61
+
```
62
+
63
+
```php
64
+
// src/Entity/ProcessSchedule.php
65
+
66
+
use Doctrine\ORM\Mapping as ORM;
67
+
use CleverAge\UiProcessBundle\Entity\ProcessSchedule as BaseProcessSchedule;
68
+
69
+
#[ORM\Entity]
70
+
#[ORM\Table]
71
+
class ProcessSchedule extends BaseProcessSchedule
72
+
{
73
+
}
74
+
```
75
+
76
+
```php
77
+
// src/Entity/User.php
78
+
79
+
use Doctrine\ORM\Mapping as ORM;
80
+
use CleverAge\UiProcessBundle\Entity\User as BaseUser;
81
+
82
+
#[ORM\Entity]
83
+
#[ORM\Table(name: 'process_user')]
84
+
class User extends BaseUser
85
+
{
86
+
}
87
+
```
88
+
89
+
So, update your schema:
90
+
91
+
```bash
92
+
bin/console doctrine:schema:update --force
93
+
```
94
+
or use [DoctrineMigrationsBundle](https://github.com/doctrine/DoctrineMigrationsBundle)
95
+
96
+
And create a User using `cleverage:ui-process:user-create` console.
0 commit comments