Feedback for @BBCNews reporters: EU is not Brussels and Berlin, it’s just as much London. Stop pretending we’re not in it.
My Hide Trackbacks #wordpress plugin is now compatible with version 4.1 (wordpress.org/plugins/hide-t…) Keep referrers, stop spam comments.
Started a huffduffer feed (huffduffer.com/svandragt) to listen to audio files on the move using my podcast client.
Are there any razor blades (single blades) that meet @LeapingBunny cruelty free standards? Not been able to find any! :(
.@MoonpigUK exposed customer data for over a year. ifc0nfig.com/moonpig-vulner… anyone reported this?
2014 for me was about the failure to have a honest debate about #scottishindependence. Today's recap on @BBCNews keeps adding spin / lies
#powershell tip: $ContentsWithLinebreaks = (Get-Content $FilePath) -join "`n"
Trying to figure out how to download all my past tweets using Twitter Tools for #WordPress
Made some layout changes to vandragt.com (refresh), any comments?
Today I wrote a bit of code that will set a webpart to use up all available height in a SharePoint page.
http://
Great to see Quorn introduce cruelty free products! quorn.us/nouvelles/goin…
Amazingly thorough documentation example from @visualsvn: Upgrading to VisualSVN Server 3.2 visualsvn.com/support/topic/…
You have a bunch of DataObjects
that has_many RelatedItems
. You might have the following seperate situations:
Dataobject->RelatedItems()
and remove()
one RelatedItem
. What happens to that RelatedItem
?Delete()
a DataObject
. What happens to the RelatedItems
for that DataObject
?Regarding 1: (in SilverStripe 3.0.x) - the DataObjectID
for that RelatedItem
is set to 0.
Regarding 2: Nothing, their DataObjectID
will point to a non-existing record.
In both cases I expected the objects to be deleted, but SilverStripe is going for safety first and keeps the records around just in case.
This means that you might need to write maintenance code if you don’t expect this happening.
If you are writing an sync task and want to make sure RelatedItems are fresh, do not delete / remove RelatedItems before creating new ones. You will be creating thousands of records over time.
Instead, get the list of IDs, and unset the IDs that you find. Then remove any IDs left in the list as they weren’t in the source.