src/EntityHelper/CustomFieldsGetSet.php
public static function getValue($owningEntity, $key)
    {
        $entity = $owningEntity->getNonemptyCustomFields()->get($key);

        if ($entity) {
            $value = $entity->getValue();
        } else {
            self::checkCustomFieldExists($owningEntity, $key);
            $value = null;
        }

        return $value;
    }
public static function getValue($owningEntity, $key)
    {
        $entity = $owningEntity->getNonemptyCustomFields()->get($key);

        if ($entity) {
            $value = $entity->getValue();
        } else {
            self::checkCustomFieldExists($owningEntity, $key);
            $value = null;
        }

        return $value;
    }
public static function getValue ( $ owningEntity , $ key ) { $ entity = $ owningEntity -> getNonemptyCustomFields ( ) -> get ( $ key ) ; if ( $ entity ) { $ value = $ entity -> getValue ( ) ; } else { self :: checkCustomFieldExists ( $ owningEntity , $ key ) ; $ value = null ; } return $ value ; }
Gets the value of a custom field, null if not set.

@param object $owningEntity
@param string $key

@return mixed
Gets the value of a custom field null if not set .