[TYPO3-mvc] Bug #11818 - sublcass problem

Christoph Koehler junk at zerodeviation.net
Thu Feb 3 20:28:24 CET 2011


Hi there,

Wondering if anyone has had a chance to take a look at this:

http://forge.typo3.org/issues/11818

Here's the description from the bug report:

For starters, here's the project that has the problem: 
http://svn.webempoweredchurch.org/projects/wec_feedbuilder/repository

It'd be best to install it and see what happens. It adds a User Tool in 
the BE called Feedbuilder.

1. Create a new tab of type "About Tab"
2. Fill in all the form fields
3. Hit Submit and watch it fail with "#1251730701: The value must be of 
type "Tx_WecFeedbuilder_Domain_Model_FeedTab", but was of type "NULL". "

Here's what I'm doing:
- Tx_WecFeedbuilder_Domain_Model_FeedTab is the parent class for a bunch 
of other model classes. They extend the default properties with whatever 
else they need.

- The indexAction and template show the initial Type select dropdown 
form. The values are a classname that defines the correct object with 
its corresponding properties, and the form for that.

-The newAction creates the right type of object from the previous type 
selection and loads the correct form for its fields from a partial.

- The createAction chokes because it expects a *_FeedTab object, but 
probably got a *_AboutTab object with fields that are not in the 
*_FeedTab parent.

Let me know if I can do anything to help you guys further!


More information about the TYPO3-project-typo3v4mvc mailing list