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

classic Classic list List threaded Threaded
2 messages Options
tchristopher87 tchristopher87
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

This post has NOT been accepted by the mailing list yet.
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!!".
rnwhite73 rnwhite73
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

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

This post has NOT been accepted by the mailing list yet.
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().
Loading...