This is a possible solution for http://stackoverflow.com/questions/22283836/serializing-a-multidimensional-array-containing-references-to-nsmanagedobjects-i