Skip to content

Commit 65fea41

Browse files
committed
rework migration section to show existing entities
1 parent 66e980c commit 65fea41

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ TicketBundle show fires events for creating, updating, and deleting of tickets.
5050
See for example of how to create listener: http://symfony.com/doc/current/cookbook/service_container/event_listener.html
5151

5252

53-
## Migration from v2 to v3
54-
5553
Add your user, ticket and ticket message entities into your config.
5654

5755
```yaml
@@ -69,8 +67,18 @@ Your entities needs to implement:
6967
| Ticket | ```Hackzilla\Bundle\TicketBundle\Model\MessageInterface``` |
7068
| Message | ```Hackzilla\Bundle\TicketBundle\Model\TicketMessageInterface``` |
7169

72-
Any reference to TicketMessage constants will need to use TicketMessageInterface.
70+
## Migration from v2 to v3
71+
72+
Ticket and TicketMessage entities still exist and the config will default to them if not overridden.
7373

74+
```yaml
75+
hackzilla_ticket:
76+
user_class: AppBundle\Entity\User
77+
ticket_class: Hackzilla\Bundle\TicketBundle\Entity\Ticket
78+
message_class: Hackzilla\Bundle\TicketBundle\Entity\TicketMessage
79+
```
80+
81+
Any reference to TicketMessage constants will need to use TicketMessageInterface.
7482

7583
## Migrating from v1 to v2
7684

0 commit comments

Comments
 (0)