contao/import — Issue #3050: New rgxp - uniqueToParent
Author: importer
Created: 2011-11-29 20:47:27+00:00
State: open
Labels: backend, Feature, Pending

Like unique=>true, but uniqueToParent=>true would check uniqueness against parent id only.

This would be very useful in this sort of situation.

Parent Table: Day
Child Table: Unique Task

Mon - get up
Mon - yawn
Mon - fart

Tue - stretch
Tue - read
Tue - fart [x]- error

At present, using 'unique' I can only fart once on a Monday!
Using 'uniqueToParent' I could only fart once each day.

This would help immensely in preventing duplicate language entries, countries etc in one set of records, but allow them still in another set.
Cheers Leo.

--- _Originally created by ramjet on May 9th, 2011, at 04:48am (ID 3050)_