[TYPO3-mvc] Domain_Model: pid is null

Michael Feinbier mf at hdnet.de
Thu Jun 10 10:30:21 CEST 2010


Hi everybody,

I am using extbase 1.2 beta2 and I found a strange behaviour which I 
cannot understand.

My table has (of course) a pid column in the database.
In my model I'm trying to access it:

class Tx_WelleTables_Domain_Model_Programm extends 
Tx_Extbase_DomainObject_AbstractEntity {

...

	/**
	 * @var integer
	 */
	protected $pid;

	/**
	 * Returns the $pid
	 * @return integer
	 */
	public function getPid() {
		return $this->pid;
	}

	/**
	 * @param integer $pid
	 */
	public function setPid($pid) {
		$this->pid = $pid;
	}

...
}

Which worked fine for Version 1.0.1 (shipped with TYPO3 4.3) but now it 
is always NULL (even in the _cleanproperties)

obbject(Tx_WelleTables_Domain_Model_Programm)#202 (19) {
   ["name:protected"]=>
   string(5) "Jarne"
   ["image:protected"]=>
   string(86) 
"fileadmin/content/files/07_Aktuelles/02_Messeneuheiten/Jarne/Milieu_1/KK6_Jarne_01.jpg"
   ....
   ["segment:protected"]=>
   string(4) "root"
   ["pid:protected"]=>
   NULL
   ["price:protected"]=>
   string(1) "2"
}

What did I wrong? All other db-fields are filled correctly

Thanks for your help.


More information about the TYPO3-project-typo3v4mvc mailing list