Cake\ElasticSearch\Type::embedMany PHP 메소드

embedMany() 공개 메소드

Embedded documents are converted into instances of the named document type. This allows you to attach entity level behavior to subsections of your documents. This method will make a list of embedded documents from the named property.
public embedMany ( string $name, array $options = [] ) : void
$name string The name of the property that contains the embedded document.
$options array The options for the embedded document.
리턴 void
    public function embedMany($name, $options = [])
    {
        $this->embeds[] = new EmbedMany($name, $options);
    }