Typo3 updates

Aus Vosp.info
Version vom 23. Juli 2013, 13:07 Uhr von F (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== Version 6 == === No converter found which can be used to convert from "array" to "string". === <source lang="php"> class Tx_extname_Domain_Model_Class extends …“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu:Navigation, Suche

Version 6

No converter found which can be used to convert from "array" to "string".

class Tx_extname_Domain_Model_Class extends Tx_Extbase_DomainObject_AbstractEntity {

	/* ... */
	/**
	 * image
	 *
	 * @var \string
	 */
	protected $image;
	/* ... */

}

class Tx_Nccontact_Controller_ClassController extends Tx_Extbase_MVC_Controller_ActionController {
	/**
	 * initialize create action
	 * allow creation of submodel company
	 */
	public function initializeAction() {
//		print_r($this->arguments->getArgumentNames());
		if ($this->arguments->hasArgument('newClassFormName')) {
			$this->arguments->getArgument('newClassFormName')->getPropertyMappingConfiguration()->setTargetTypeForSubProperty('image', 'array');
		}
	}	
}