[TYPO3-mvc] Child objects are missing properties

Stefan Wild sw at sw4.de
Mon Apr 26 09:46:44 CEST 2010


On a side note: The data was filled using the standard Typo3 backend. 
All the definitions and relations are working fine, there.

Jochen Rau <jochen.rau at typoplanet.de> wrote:

> If that doesn't help: please post your property definitions and the 
> relevant part of your classes.

These are the models:

Parent domain model

/**
 * Angebot
 *
 * @version $Id$
 * @copyright Copyright belongs to the respective authors
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License, version 3 or later
 * @scope prototype
 * @entity
 */


class Tx_PalcorealeReisen_Domain_Model_Angebot extends 
Tx_Extbase_DomainObject_AbstractEntity {
   
   /**
    * @var integer
    * @validate NotEmpty
    */
   protected $datumStart;
   
   /**
    * @var integer
    * @validate NotEmpty
    */
   protected $datumEnde;
   
   /**
    * @var 
Tx_Extbase_Persistence_ObjectStorage<Tx_PalcorealeReisen_Domain_Model_Ere
ignis>
    * @lazy
    * @cascade remove
    */
   protected $ereignisse;
   
   /**
    * @var 
Tx_Extbase_Persistence_ObjectStorage<Tx_PalcorealeReisen_Domain_Model_Ang
ebotsVariante>
    * @lazy
    * @cascade remove
    */
   protected $varianten;
   

   /**
    * Constructor. Initializes all Tx_Extbase_Persistence_ObjectStorage 
instances.
    */
   public function __construct() {
      $this->ereignisse = new Tx_Extbase_Persistence_ObjectStorage();
      $this->varianten = new Tx_Extbase_Persistence_ObjectStorage();
   }

[getters and setters snipped]


One of the child domain models

/**
 * Ereignis
 *
 * @package Angebot
 * @subpackage Domain
 * @version $Id$
 * @copyright Copyright belongs to the respective authors
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License, version 3 or later
 * @scope prototype
 * @entity
 */


class Tx_PalcorealeReisen_Domain_Model_Ereignis extends 
Tx_Extbase_DomainObject_AbstractEntity {
   
   /**
    * @var string
    * @validate NotEmpty
    */
   protected $werke;
   
   /**
    * @var string
    * @validate NotEmpty
    */
   protected $kategorie;
   
   /**
    * @var string
    * @validate NotEmpty
    */
   protected $komponisten;
   
   /**
    * @var string
    * @validate NotEmpty
    */
   protected $headline;
   
   /**
    * @var string
    * @validate NotEmpty
    */
   protected $besetzung;
   
   /**
    * @var integer
    * @validate NotEmpty
    */
   protected $datumUhrzeit;
   
   /**
    * @var Tx_PalcorealeReisen_Domain_Model_Spielstaette
    * @lazy
    */
   protected $spielstaette;
   
   /**
    * @var 
Tx_Extbase_Persistence_ObjectStorage<Tx_PalcorealeReisen_Domain_Model_Sta
rs>
    * @lazy
    */
   protected $stars;
   
   /**
    * @var Tx_PalcorealeReisen_Domain_Model_Oper
    * @lazy
    */
   protected $oper;
   

   /**
    * Constructor. Initializes all Tx_Extbase_Persistence_ObjectStorage 
instances.
    */
   public function __construct() {
      $this->stars = new Tx_Extbase_Persistence_ObjectStorage();
      $this->oper = new Tx_Extbase_Persistence_ObjectStorage();
   }

[getters and setters snipped]


More information about the TYPO3-project-typo3v4mvc mailing list