public function getPopulation($config)
    {
        if ($config['populated'] && ($config['name'] !== $config['objectValue'])) {

            if ($config['type'] == 'date' && method_exists($config['objectValue'], 'format')) {
                $format = (isset($config['format'])) ? $config['format'] : 'Y-m-d';
                $config['objectValue'] = $config['objectValue']->format($format);
            }

            return 'value="'.htmlspecialchars($config['objectValue']).'"';
        }

        return '';
    }