Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- symfony foreign key one-to-many
- Dispositivi:
- connection: doctrine
- tableName: dispositivi
- columns:
- id_dispositivo:
- type: integer(4)
- fixed: false
- unsigned: false
- primary: true
- autoincrement: true
- device_id:
- type: string(255)
- fixed: false
- unsigned: false
- primary: false
- notnull: true
- autoincrement: false
- tipo:
- type: string(255)
- fixed: false
- unsigned: false
- primary: false
- notnull: true
- autoincrement: false
- utente_fk:
- type: integer(4)
- fixed: false
- unsigned: false
- primary: false
- notnull: true
- autoincrement: false
- relations:
- Utenti:
- local: utente_fk
- foreign: id_utente
- type: one
- Utenti:
- connection: doctrine
- tableName: utenti
- columns:
- id_utente:
- type: integer(4)
- fixed: false
- unsigned: false
- primary: true
- autoincrement: true
- username:
- type: string(255)
- fixed: false
- unsigned: false
- primary: false
- notnull: true
- autoincrement: false
- password:
- type: string(255)
- fixed: false
- unsigned: false
- primary: false
- notnull: true
- autoincrement: false
- tipo:
- type: string(255)
- fixed: false
- unsigned: false
- primary: false
- notnull: true
- autoincrement: false
- relations:
- Dispositivi:
- local: id_utente
- foreign: utente_fk
- type: many
- Servizi:
- local: id_utente
- foreign: utente_fk
- type: many
- <?php
- $dispositivis = $utente->Dispositivis;
- ?>
- <?php foreach ($dispositivis as $d): ?>
- <?php echo link_to($d->getTipo(), 'module_name/action_name?id='. $d->getIdDispositivo()) ?><br />
- <?php endforeach ?>
Add Comment
Please, Sign In to add comment