many-to-many relationship
Posted: Mon May 31, 2010 6:18 am
Hi, it possible to use an relationship many to many on same tables?
I have a table:
and realtionship.ini:
and in fields.ini:
I have a table:
- Code: Select all
CREATE TABLE `directories` (
`iddirectories` bigint(20) NOT NULL AUTO_INCREMENT,
`datacreazione` datetime DEFAULT NULL,
`utentecreazione` int(11) DEFAULT NULL,
`datamodifica` datetime DEFAULT NULL,
`utentemodifica` int(11) DEFAULT NULL,
`directory_name` varchar(64) COLLATE latin1_general_ci DEFAULT NULL,
`note` text COLLATE latin1_general_ci,
PRIMARY KEY (`iddirectories`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci
and realtionship.ini:
- Code: Select all
[Sotto Cartelle]
dirdir.padre="$iddirectories"
dirdir.figlio=directories.iddirectories
and in fields.ini:
- Code: Select all
[SottoCartelle]
transient=1
relationship="Sotto Cartelle"
widget:type=checkbox