[TYPO3-mvc] Child objects are missing properties

Stefan Wild sw at sw4.de
Mon Apr 26 10:08:41 CEST 2010


It seems that extbase does not go through the foreign key but just adds 
the child count to the object. I may be misinterpreting this var_dump, 
though:

array(1) {
  [0]=>
  object(Tx_PalcorealeReisen_Domain_Model_Angebot)#90 (7) {
    ["datumStart":protected]=>
    object(DateTime)#91 (3) {
      ["date"]=>
      string(19) "2010-10-08 00:00:00"
      ["timezone_type"]=>
      int(3)
      ["timezone"]=>
      string(13) "Europe/Berlin"
    }
    ["datumEnde":protected]=>
    object(DateTime)#92 (3) {
      ["date"]=>
      string(19) "2010-10-11 00:00:00"
      ["timezone_type"]=>
      int(3)
      ["timezone"]=>
      string(13) "Europe/Berlin"
    }
    ["ereignisse":protected]=>
    object(Tx_Extbase_Persistence_LazyObjectStorage)#147 (5) {
      ["parentObject":protected]=>
      object(Tx_PalcorealeReisen_Domain_Model_Angebot)#90 (7) {
        ["datumStart":protected]=>
        object(DateTime)#91 (3) {
          ["date"]=>
          string(19) "2010-10-08 00:00:00"
          ["timezone_type"]=>
          int(3)
          ["timezone"]=>
          string(13) "Europe/Berlin"
        }
        ["datumEnde":protected]=>
        object(DateTime)#92 (3) {
          ["date"]=>
          string(19) "2010-10-11 00:00:00"
          ["timezone_type"]=>
          int(3)
          ["timezone"]=>
          string(13) "Europe/Berlin"
        }
        ["ereignisse":protected]=>
        object(Tx_Extbase_Persistence_LazyObjectStorage)#147 (5) {
          ["parentObject":protected]=>
          *RECURSION*
          ["propertyName":protected]=>
          string(10) "ereignisse"
          ["fieldValue":protected]=>
          string(1) "2"
          ["isInitialized":protected]=>
          bool(false)
          ["storage":protected]=>
          array(0) {
          }
        }
        ["varianten":protected]=>
        object(Tx_Extbase_Persistence_LazyObjectStorage)#97 (5) {
          ["parentObject":protected]=>
          *RECURSION*
          ["propertyName":protected]=>
          string(9) "varianten"
          ["fieldValue":protected]=>
          string(1) "1"
          ["isInitialized":protected]=>
          bool(false)
          ["storage":protected]=>
          array(0) {
          }
        }
        
["_cleanProperties":"Tx_Extbase_DomainObject_AbstractEntity":private]=>
        array(5) {
          ["datumStart"]=>
          object(DateTime)#149 (3) {
            ["date"]=>
            string(19) "2010-10-08 00:00:00"
            ["timezone_type"]=>
            int(3)
            ["timezone"]=>
            string(13) "Europe/Berlin"
          }
          ["datumEnde"]=>
          object(DateTime)#105 (3) {
            ["date"]=>
            string(19) "2010-10-11 00:00:00"
            ["timezone_type"]=>
            int(3)
            ["timezone"]=>
            string(13) "Europe/Berlin"
          }
          ["ereignisse"]=>
          object(Tx_Extbase_Persistence_LazyObjectStorage)#96 (5) {
            ["parentObject":protected]=>
            *RECURSION*
            ["propertyName":protected]=>
            string(10) "ereignisse"
            ["fieldValue":protected]=>
            string(1) "2"
            ["isInitialized":protected]=>
            bool(false)
            ["storage":protected]=>
            array(0) {
            }
          }
          ["varianten"]=>
          object(Tx_Extbase_Persistence_LazyObjectStorage)#94 (5) {
            ["parentObject":protected]=>
            *RECURSION*
            ["propertyName":protected]=>
            string(9) "varianten"
            ["fieldValue":protected]=>
            string(1) "1"
            ["isInitialized":protected]=>
            bool(false)
            ["storage":protected]=>
            array(0) {
            }
          }
          ["uid"]=>
          int(1)
        }
        ["uid":protected]=>
        int(1)
        
["isClone":"Tx_Extbase_DomainObject_AbstractDomainObject":private]=>
        bool(false)
      }
      ["propertyName":protected]=>
      string(10) "ereignisse"
      ["fieldValue":protected]=>
      string(1) "2"
      ["isInitialized":protected]=>
      bool(false)
      ["storage":protected]=>
      array(0) {
      }
    }
    ["varianten":protected]=>
    object(Tx_Extbase_Persistence_LazyObjectStorage)#97 (5) {
      ["parentObject":protected]=>
      object(Tx_PalcorealeReisen_Domain_Model_Angebot)#90 (7) {
        ["datumStart":protected]=>
        object(DateTime)#91 (3) {
          ["date"]=>
          string(19) "2010-10-08 00:00:00"
          ["timezone_type"]=>
          int(3)
          ["timezone"]=>
          string(13) "Europe/Berlin"
        }
        ["datumEnde":protected]=>
        object(DateTime)#92 (3) {
          ["date"]=>
          string(19) "2010-10-11 00:00:00"
          ["timezone_type"]=>
          int(3)
          ["timezone"]=>
          string(13) "Europe/Berlin"
        }
        ["ereignisse":protected]=>
        object(Tx_Extbase_Persistence_LazyObjectStorage)#147 (5) {
          ["parentObject":protected]=>
          *RECURSION*
          ["propertyName":protected]=>
          string(10) "ereignisse"
          ["fieldValue":protected]=>
          string(1) "2"
          ["isInitialized":protected]=>
          bool(false)
          ["storage":protected]=>
          array(0) {
          }
        }
        ["varianten":protected]=>
        object(Tx_Extbase_Persistence_LazyObjectStorage)#97 (5) {
          ["parentObject":protected]=>
          *RECURSION*
          ["propertyName":protected]=>
          string(9) "varianten"
          ["fieldValue":protected]=>
          string(1) "1"
          ["isInitialized":protected]=>
          bool(false)
          ["storage":protected]=>
          array(0) {
          }
        }
        
["_cleanProperties":"Tx_Extbase_DomainObject_AbstractEntity":private]=>
        array(5) {
          ["datumStart"]=>
          object(DateTime)#149 (3) {
            ["date"]=>
            string(19) "2010-10-08 00:00:00"
            ["timezone_type"]=>
            int(3)
            ["timezone"]=>
            string(13) "Europe/Berlin"
          }
          ["datumEnde"]=>
          object(DateTime)#105 (3) {
            ["date"]=>
            string(19) "2010-10-11 00:00:00"
            ["timezone_type"]=>
            int(3)
            ["timezone"]=>
            string(13) "Europe/Berlin"
          }
          ["ereignisse"]=>
          object(Tx_Extbase_Persistence_LazyObjectStorage)#96 (5) {
            ["parentObject":protected]=>
            *RECURSION*
            ["propertyName":protected]=>
            string(10) "ereignisse"
            ["fieldValue":protected]=>
            string(1) "2"
            ["isInitialized":protected]=>
            bool(false)
            ["storage":protected]=>
            array(0) {
            }
          }
          ["varianten"]=>
          object(Tx_Extbase_Persistence_LazyObjectStorage)#94 (5) {
            ["parentObject":protected]=>
            *RECURSION*
            ["propertyName":protected]=>
            string(9) "varianten"
            ["fieldValue":protected]=>
            string(1) "1"
            ["isInitialized":protected]=>
            bool(false)
            ["storage":protected]=>
            array(0) {
            }
          }
          ["uid"]=>
          int(1)
        }
        ["uid":protected]=>
        int(1)
        
["isClone":"Tx_Extbase_DomainObject_AbstractDomainObject":private]=>
        bool(false)
      }
      ["propertyName":protected]=>
      string(9) "varianten"
      ["fieldValue":protected]=>
      string(1) "1"
      ["isInitialized":protected]=>
      bool(false)
      ["storage":protected]=>
      array(0) {
      }
    }


More information about the TYPO3-project-typo3v4mvc mailing list