On Fri, Jan 11, 2013 at 10:57 PM, amitsukapure
<[email protected]> wrote:
> Thanks for reply.
> I have made changes as you said but still it won't work.
> Is it with mysql database tables? Table type is Innodb.

In that case, you can use FK constraints ...

CREATE TABLE options (
    ...
    FOREIGN KEY (question_id) REFERENCES questions (id) ON DELETE CASCADE
) ENGINE=InnoDB ...

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to