Library/Bullhorn/FastRest/Api/Services/ControllerHelper/Save.php
private function lookUpAutomaticFields(ApiInterface $entity, $isCreating) {
        if($isCreating) {
            $automaticAttributes = $entity->getModelsMetaData()->getAutomaticCreateAttributes($entity);
        } else {
            $automaticAttributes = $entity->getModelsMetaData()->getAutomaticUpdateAttributes($entity);
        }
        $columnMap = $entity->getModelsMetaData()->getColumnMap($entity);
        $automaticFields = array_fill_keys($entity->getAutomaticallyUpdatedFields(), null);
        foreach($automaticAttributes as $fullName => $null) {
            $automaticFields[$columnMap[$fullName]] = null;
        }
        return $automaticFields;
    }
private function lookUpAutomaticFields(ApiInterface $entity, $isCreating) {
        if($isCreating) {
            $automaticAttributes = $entity->getModelsMetaData()->getAutomaticCreateAttributes($entity);
        } else {
            $automaticAttributes = $entity->getModelsMetaData()->getAutomaticUpdateAttributes($entity);
        }
        $columnMap = $entity->getModelsMetaData()->getColumnMap($entity);
        $automaticFields = array_fill_keys($entity->getAutomaticallyUpdatedFields(), null);
        foreach($automaticAttributes as $fullName => $null) {
            $automaticFields[$columnMap[$fullName]] = null;
        }
        return $automaticFields;
    }
private function lookUpAutomaticFields ( ApiInterface $ entity , $ isCreating ) { if ( $ isCreating ) { $ automaticAttributes = $ entity -> getModelsMetaData ( ) -> getAutomaticCreateAttributes ( $ entity ) ; } else { $ automaticAttributes = $ entity -> getModelsMetaData ( ) -> getAutomaticUpdateAttributes ( $ entity ) ; } $ columnMap = $ entity -> getModelsMetaData ( ) -> getColumnMap ( $ entity ) ; $ automaticFields = array_fill_keys ( $ entity -> getAutomaticallyUpdatedFields ( ) , null ) ; foreach ( $ automaticAttributes as $ fullName => $ null ) { $ automaticFields [ $ columnMap [ $ fullName ] ] = null ; } return $ automaticFields ; }
Looks up which fields are automatically updated

@param ApiInterface $entity
@param bool $isCreating

@return array
Looks up which fields are automatically updated