2008年10月17日星期五

[fw-db] Re: Re[fw-db] ferencemap: delete CASCADE

In my opinion it must folow your reference map anywhere it goes. I'll try to
post this somewhere on the zend site. Maybe we get a good answer there...

Another question. Is there something in the zend framework where: when I
want to delete something it checks if the value is used in another table,
and don't delete it when it is.

e.g. table with articles. Every articles is connected with a category. when
I try to delete a category, it 'll check if that id is used in the table
articles. If used, it 'll not delete it. If not used, the category can be
deleted.

something like that would also be usefull for a lot of programmers...


-----
http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context: http://www.nabble.com/Referencemap%3A-delete-CASCADE-tp20027817p20036445.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: