[TYPO3-mvc] Extending of extbase model fails

Stefan Kruse besucher80 at gmx.de
Sun Apr 6 12:04:51 CEST 2014


Hi Nadine and all others,

its right that the class they should be extended has no namespace syntax.

Could somebody confirm that it is not possible to mix old syntax with
namespace syntax?!?

Because by the news extension this work for. Or is there some
failure/missing etc.?

Ext_typoscript_setup:

config.tx_extbase{
    persistence{
        classes{

            \Tx_In2snippets_Domain_Model_Code {
                subclasses {
                    Tx_In2snippetsextening_Code =
SK\In2snippetsextening\Domain\Model\Code
					
          		}
            }
            SK\In2snippetsextening\Domain\Model\Code {
                mapping {
                    tableName = tx_in2snippets_domain_model_code
                    recordType = Tx_In2snippetsextening_Code
                }
            }
            
    	}
    }
}

Model:

class Code extends \Tx_In2snippets_Domain_Model_Code {
	...
}

Regards and thanks
STefan



More information about the TYPO3-project-typo3v4mvc mailing list