Created
August 8, 2014 17:50
-
-
Save dmoses/c0bd642ff6d520d9e545 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pid = 'islandora:root'; | |
$object = islandora_object_load($pid); | |
dsm($object['RELS-EXT']->content, 'RELS-EXT Prior to Add'); | |
$object->relationships->add(FEDORA_MODEL_URI, 'hasModel', 'si:conceptCModel'); | |
dsm($object['RELS-EXT']->content, 'RELS-EXT After Add'); | |
$object->relationships->remove(FEDORA_MODEL_URI, 'hasModel', 'si:conceptCModel'); | |
dsm($object['RELS-EXT']->content, 'RELS-EXT After Remove'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment