Doctrine\ORM\Mapping\ClassMetadataInfo::__sleep
Determines which fields get serialized.
It is only serialized what is necessary for best unserialization performance. That means any metadata properties that are not set or empty or simply have their default value are NOT serialized. Parts that are also NOT serialized because they can not be properly unserialized: - reflClass (ReflectionClass) - reflFields (ReflectionProperty array)
Signature
public function __sleep()
Returns
- array
- The names of all the fields that should be serialized.