/**
  * Gets the available fiter entries for the provided field
  * @param \ride\library\orm\definition\field\ModelField $field
  * @param \ride\library\orm\model\Model $relationModel
  * @param string $locale Code of the locale
  * @return array Array with the id of the entry as key and the entry
  * instance as value
  */
 protected function getEntries($field, $relationModel, $locale)
 {
     $options = array();
     $condition = $field->getOption('scaffold.form.condition');
     if ($condition) {
         $options['condition'] = array($condition);
     }
     $vocabulary = $field->getOption('taxonomy.vocabulary');
     if ($vocabulary && $relationModel->getName() == 'TaxonomyTerm') {
         $options['condition'] = array('{vocabulary.slug} = "' . $vocabulary . '"');
     }
     return $relationModel->find($options, $locale);
 }