src/Gallery.php
public function serialize()
    {
        $this->reload(true);
        $data = array(
            $this->id,
            $this->count,
            $this->updatedAt,
            $this->name,
            $this->cover,
            $this->images
        );

        return serialize($data);
    }
public function serialize()
    {
        $this->reload(true);
        $data = array(
            $this->id,
            $this->count,
            $this->updatedAt,
            $this->name,
            $this->cover,
            $this->images
        );

        return serialize($data);
    }
{@inheritDoc}