Thanks for the reply. I have tried it, ondelete=CASCADE worked, but the 
referenced table seems to be accepting multiple entries ... one-to-many 
relation. Are there ways to prevent this from occurring ? 

On Monday, September 10, 2012 2:43:55 PM UTC+2, Massimo Di Pierro wrote:
>
> Field('....','reference other_table',ondelete='CASCADE')
>
> this is actually the default. Is this what you are asking?
>
> On Monday, 10 September 2012 05:45:28 UTC-5, martzi wrote:
>>
>> Hi,
>> I wonder if there a way to enforce a one to one relationship with Cascade 
>> via web2py  DAL API. ???
>>
>

-- 



Reply via email to