[Flow] Image upload and displaying the uploaded image

Steffen Wickham steffen at gaming-inc.de
Mon Jan 13 15:37:17 CET 2014


For the few infomations given it sounds like a database issue for me.

What happens when you try to set the value to NULL?
/**
* remover for image
*
* @return void
*/
public function removeImage() {
     $this->image = NULL;
}

Maybe you have to add a @ORM\Column(nullable="true") to your property 
annotation too.





Am 13.01.14 15:04, schrieb Cornel Widmer:
> Unfortunately its a very common error and its not specific on the code 
> I wrote. But its related on the following line: $model->removeImage();
>
> When the line above is removed, everthing works fine except that the 
> database is not updated with an empty value and so the frontend tries 
> to display an image, but doesn't find the image on the file system.
>
> Fatal error: Allowed memory size of 268435456 bytes exhausted (tried 
> to allocate 79 bytes) in 
> /home/ricoch/www/service.rico.ch/Packages/Libraries/doctrine/common/lib/Doctrine/Common/Util/Debug.php 
> on line 117
>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list