[TYPO3-mvc] Edit/Validation of hidden record

Fabian Fisahn fisahn at its-immaterial.com
Fri Apr 15 11:38:08 CEST 2011


Hi Henjo,

On 15.04.11 00:17, Henjo Hoeksma wrote:
> On 2011-04-14 22:37:47 +0200, Fabian Fisahn said:
> 
>> Hello,
>>
>> I work on a Backend Extbase Extension where Users can add/edit records.
>> The records can be hidden and visible.
>> I have no problems with the visible data, but if I want to update a
>> hidden record, I get the message:
>>
>> The value must be of type "Tx_My_Model", but was of type "array".
>>
>> I know that Extbase only can get visible und undeleted data. But is
>> there a way to set a global setRespectEnableFields(FALSE) to get and
>> validate also hidden records?
>>
>> Thanks
>> Fabian
> 
> Hi Fabian, I think I read somewhere about this and that it is possible
> to do so now.
> 
> Have a look at the second block of code in this article[1].

thanks.

This works great, if you want to use the Repository methods like
"findAll()" etc.

But if I use the object to update it, its an argument and I  get:

------------
#1251730701: The value must be of type "Tx_My_Model", but was of type
"array".

Tx_Extbase_MVC_Exception_InvalidArgumentValue thrown in file
/www/htdocs/typo3_src-4.5.2/typo3/sysext/extbase/Classes/MVC/Controller/Argument.php
in line 389.
------------

Do you know any other solution to update hidden records?

Thanks
Fabian

> 
> Have fun!
> 
> Henjo
> [1]
> http://forge.typo3.org/projects/typo3v4-mvc/wiki/Default_Orderings_and_Query_Settings_in_Repository
> 
> 



More information about the TYPO3-project-typo3v4mvc mailing list