[html-formfu] Complex relationship and condition in H::F::M::D

Alex Povolotsky tarkhil at over.ru
Fri Dec 24 13:53:28 GMT 2010


Hello!

Let's assume the database setup

create table company (id serial primary key, ...);
create table queue (id serial primary key, company_id int not null 
references company(id), ...);
create table client(id serial primary key, queue_id int not null 
references queue(id), ...);

And assume that client should be created given company id, so queue must 
be selected from table

What condition should I write? As far as I understand, condition 
supports only constants.

Alex.




More information about the HTML-FormFu mailing list