Hi, I'm fairly new to the whole maypole development, so please forgive me the stupid question:
I have a database of persons* (say MyDB::Person), and each person
belongs to one group (MyDB::Group).
[*: actually it's something different, but the problems are isomorph]
The underlying (mysql) database has tables like this:
CREATE TABLE person (
char(8) id,
varchar(40) name,
...
int group,
...,
primary key(id));
and
CREATE TABLE group (
int id,
int name,
primary key(id)
);
now the URL [%base%]/group/list lists the available groups like a charm,
but I'd like to list all persons of a group in [%base%]/group/view.
How do could I do that?
I already defined relationships:
MyDB::Person->has_a(group => 'MyDB::Group');
MyDB::Group->has_many(persons => 'MyDB::Person');
There _must_ be a really simple solution, considering how much magic is
involved with maypole ;-), I just can't seem to find it.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/
http://sudokugarden.de/
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Maypole-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/maypole-users
