[TYPO3-mvc] setHidden - how to add record as hidden

Dawid Pacholczyk dpacholczyk at gmail.com
Wed Sep 7 21:34:38 CEST 2011


Ok but I don`t get one thing. In my table there is hidden field. So why 
I need to add it as property ?

W dniu 2011-09-07 21:12, Stefan Isak pisze:
> Ah sorry, accidentally send the mail too early.
>
> Of course you also need to define the property and the according setter/getter methods within the model.
> Then you can call setHidden() right before adding the object.
>
> public function createAction(Tx_Test_Domain_Model_Test $newTest) {
>    $newTest->setHidden(TRUE);
>    $this->testRepository->add($newTest);
> }
>
> Hope that it's clear now.
> Stefan
>
>
>
> On Sep 7, 2011, at 9:05 PM, Stefan Isak wrote:
>
>> Hi,
>>
>> just invoke the setter method $myObject->setHidden(TRUE)
>> That's all.
>>
>> Stefan
>>
>>
>>
>> On Sep 7, 2011, at 8:45 PM, Dawid Pacholczyk wrote:
>>
>>> Hello Listm,
>>> I want to ask is there a method that allows me to add new record to db as hidden ?
>>> I want to add an inactive record (so it will be seen in BE but not on FE) and I want to active it after clicking on url in email.
>>>
>>> How can I do that ? Do I need to do some special query in repository that will edit last record ?
>>>
>>> Best regards,
>>> Dawid Pacholczyk
>>> _______________________________________________
>>> TYPO3-project-typo3v4mvc mailing list
>>> TYPO3-project-typo3v4mvc at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>>
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>



More information about the TYPO3-project-typo3v4mvc mailing list