Library/Bullhorn/FastRest/Api/Services/ControllerHelper/Save.php
private function writeCustomParents($fields, ApiInterface $entity) {
        foreach($entity->getCustomParentRelationships() as $customRelationship) {
            $name = $customRelationship->getReferencedFields();
            if(array_key_exists($name, $fields)) {
                $entity->writeAttribute($name, $fields[$name]);
            }
        }
    }
private function writeCustomParents($fields, ApiInterface $entity) {
        foreach($entity->getCustomParentRelationships() as $customRelationship) {
            $name = $customRelationship->getReferencedFields();
            if(array_key_exists($name, $fields)) {
                $entity->writeAttribute($name, $fields[$name]);
            }
        }
    }
private function writeCustomParents ( $ fields , ApiInterface $ entity ) { foreach ( $ entity -> getCustomParentRelationships ( ) as $ customRelationship ) { $ name = $ customRelationship -> getReferencedFields ( ) ; if ( array_key_exists ( $ name , $ fields ) ) { $ entity -> writeAttribute ( $ name , $ fields [ $ name ] ) ; } } }
Writes the custom parent fields

@param string[] $fields
@param ApiInterface $entity

@return void
Writes the custom parent fields