1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/manual/docs/Real world examples - User management system.php
2006-07-23 21:08:06 +00:00

22 lines
767 B
PHP

In the following example we make a user management system where
<br /><br />
1. Each user and group are entities
<br /><br />
2. User is an entity of type 0
<br /><br />
3. Group is an entity of type 1
<br /><br />
4. Each entity (user/group) has 0-1 email
<br /><br />
5. Each entity has 0-* phonenumbers
<br /><br />
6. If an entity is saved all its emails and phonenumbers are also saved
<br /><br />
7. If an entity is deleted all its emails and phonenumbers are also deleted
<br /><br />
8. When an entity is created and saved a current timestamp will be assigned to 'created' field
<br /><br />
9. When an entity is updated a current timestamp will be assigned to 'updated' field
<br /><br />
10. Entities will always be fetched in batches