Created
January 31, 2012 20:08
-
-
Save smottt/1712613 to your computer and use it in GitHub Desktop.
Serialization of 'Symfony\Component\HttpFoundation\File\UploadedFile' is not allowed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function __sleep() | |
{ | |
$ref = new \ReflectionClass(__CLASS__); | |
$props = $ref->getProperties(\ReflectionProperty::IS_PROTECTED); | |
$serialize_fields = array(); | |
foreach ($props as $prop) { | |
$serialize_fields[] = $prop->name; | |
} | |
return $serialize_fields; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works but if i want to change my ImageFile it doesnt work, i cant change my image