[TYPO3-mvc] Repository does not save added objects

Philipp philippwrann at gmx.at
Thu Feb 28 15:10:39 CET 2013


Hey. Following code is placed in a static method of a serviceclass.

$repository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Vendor\\Events\\Domain\\Repository\\IrregularOccasionRepository');
		
		$dummy = new \Pixelpoint\Events\Domain\Model\IrregularOccasion(
			new \DateTime(),
			new \DateTime(),
			$occasion->getTimeFrom(),
			$occasion->getTimeTo(),
			$occasion->getRegionalObject(),
			$table,
			$id
		);
		
		$repository->add($dummy);

My repository doesnt store the dummy in the database...


More information about the TYPO3-project-typo3v4mvc mailing list