RemoveBlog(1)" where 1 is BlogID,but it gives me error that !

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RemoveBlog(1)" where 1 is BlogID,but it gives me error that !

tchristopher87
I have tried to remove blog by calling function "RemoveBlog(1)" where 1 is BlogID,but it gives me error that "Cannot remove it as dependency exists!!".
Reply | Threaded
Open this post in threaded view
|

Re: RemoveBlog(1)" where 1 is BlogID,but it gives me error that !

rnwhite73
You need to first delete all the child records of the blog and then an only then you can remove blog. e.g. if comment of blogs exists then you need to first remove comment and then you can remove blogs. you can remove all child records by calling $blogs->comment->RemoveAll().