Skip to content

Typo in doc (used ArrayCollection instead of Collection) #62

Open
@nikolay-nikitin

Description

@nikolay-nikitin

Hi.

It seems like there is a mistake in mapping documentation ("Multiple object" section). We shouldn't use use Doctrine\Common\Collections\ArrayCollection. Probably it was meant ONGR\ElasticsearchBundle\Collection\Collection.

Using of ArrayCollection leads to error in /vendor/ongr/elasticsearch-bundle/Result/Converter.php:

private function isCollection($property, $value)
    {
        if (!$value instanceof Collection) {
            $got = is_object($value) ? get_class($value) : gettype($value);

            throw new \InvalidArgumentException(
                sprintf('Value of "%s" property must be an instance of Collection, got %s.', $property, $got)
            );
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions