protected function getRelationName($recordField)
    {
        $relationName = null;
        if (isset($this->relationCallbacks[$recordField])) {
            $relationName = $this->relationCallbacks[$recordField]['relationname'];
        }
        if (strpos($recordField, '.') !== false) {
            list($relationName, $columnName) = explode('.', $recordField);
        }

        return $relationName;
    }