Zum Inhalt springen

static_info_tables Fehler in DataMapFactory

Erstellt am 3. November 2013 · Noch keine Antworten

Tags: TCA, Frage

janthelen ·

Erledigt, Fehler im TCA...

Hallo

Erstelle eine Extension in Typo3 6.1.

Ich will in einem Formular die Länder aus den static_info_tables anzeigen lassen.
Im controller:

	/**
	 * countriesRepository
	 *
	 * @var \SJBR\StaticInfoTables\Domain\Repository\CountryRepository
	 * @inject
	 */
	protected $countriesRepository;


	/**
	 * action edit
	 *
	 * @param \TYPO3\XXX\Domain\Model\Locations $locations
	 * @return void
	 */
	public function editAction(\TYPO3\XXX\Domain\Model\Locations $locations)
	{
		$countries = $this->countriesRepository->findAll();
.
.
.
.
        }

Hab das Statische Template eingebunden und kriege folgenden Fehler:

#1: PHP Catchable Fatal Error: Argument 2 passed to TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapFactory::setFieldEvaluations() must be an array, string given, called in /XXX/www/typo3_src-6.1.5/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php on line 179 and defined in /XXX/www/typo3_src-6.1.5/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php line 331 (More information)

23 TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapFactory::setFieldEvaluations(TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap, "d")

/XXX/www/typo3_src-6.1.5/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php:
00177:    $propertyMetaData = $this->reflectionService->getClassSchema($className)->getProperty($propertyName);00178:    $columnMap = $this->setRelations($columnMap, $columnDefinition['config'], $propertyMetaData);
00179:    $columnMap = $this->setFieldEvaluations($columnMap, $columnDefinition['config']);
00180:    $dataMap->addColumnMap($columnMap);00181:   }

$columnDefinition['config'] ist also kein array sondern string "d"

Ist zwar schön, daß ich jetzt weiß , was passiert, nur hab ich keine Ahnung warum.
Vielleicht irgendwer anders?

LG
Jan