Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

Deleting content and Casacde delete Options
gedw99
Posted: Wednesday, July 1, 2009 3:11:55 AM
Rank: Advanced Member
Groups: Member

Joined: 4/3/2006
Posts: 243
Points: 450
Location: the moon :)
All content holds a striong reference to the User via a FK.

This means that when deleting content it wont allow it, unless the user is deleted.
I think the hbm needs to be carefully managed to allow this on the Content Item.

Martin, have you found this also in the 2.0 code base ?

ged

if your doing it hard your probably doing it the wrong way....
Constructor
Posted: Wednesday, July 1, 2009 4:08:05 AM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
I have not had this problem. Could you elaborate a little on how to replicate?

I can CRUD ContentItems fine on my build. I also include a FK reference to the section for all the modules I create so that they can be deleted whilst still containing content. Otherwise you have to manually remove content first which is a pain.
martijnb
Posted: Wednesday, July 1, 2009 11:31:43 PM

Rank: Administration
Groups: Administration , Member

Joined: 12/30/2004
Posts: 1,674
Points: 1,824
Location: Wageningen (NL)
gedw99 wrote:
All content holds a striong reference to the User via a FK.

This means that when deleting content it wont allow it, unless the user is deleted.
I think the hbm needs to be carefully managed to allow this on the Content Item.


We'll have a thorough look at it to make sure deleting content doesn't cascade to User and Section.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.