Cake\ElasticSearch\Type::embedOne PHP Méthode

embedOne() public méthode

Embedded documents are converted into instances of the named document type. This allows you to attach entity level behavior to subsections of your documents.
public embedOne ( 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.
Résultat void
    public function embedOne($name, $options = [])
    {
        $this->embeds[] = new EmbedOne($name, $options);
    }