[TYPO3-mvc] [!!!] Changes with the latest revision of Extbase
Jochen Rau
jochen.rau at typoplanet.de
Wed Nov 25 11:58:28 CET 2009
Hi.
With revision 1705 the configuration option "foreign_class" in the $TCA
became deprecated. There are no differences in the $TCA compared to
traditional extensions anymore.
The option is still available. So, existing Extbase extensions should
still work.
Please use the property annotation instead, as shown in the BlogExample:
class Tx_BlogExample_Domain_Model_Blog extends
Tx_Extbase_DomainObject_AbstractEntity {
[...]
/**
* The posts contained in this blog
*
* @var
Tx_Extbase_Persistence_ObjectStorage<Tx_BlogExample_Domain_Model_Post>
* @lazy
* @cascade remove
*/
protected $posts;
[...]
}
For every ObjectStorage you have to specify the class of contained
objects by adding "<Tx_MyExtension_MyClass>" right after
"Tx_Extbase_Persistence_ObjectStorage".
Please check your classes and update your annotations.
Regards
Jochen
--
Every nit picked is a bug fixed
More information about the TYPO3-project-typo3v4mvc
mailing list