Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Cake
ElasticSearch
Type
embedOne
Cake\ElasticSearch\Type::embedOne PHP Method
Type Class Documentation
Datei anzeigen
Open project: cakephp/elastic-search
embedOne()
public
method
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.
return
void
public function embedOne($name, $options = []) { $this->embeds[] = new EmbedOne($name, $options); }
Type
__construct
alias
callFinder
connection
defaultConnectionName
delete
deleteAll
embedMany
embedOne
embedded
entityClass
exists
find
findAll
get
getEventManager
hasField
implementedEvents
initialize
marshaller
name
newEntities
newEntity
patchEntities
patchEntity
query
save
schema
table
updateAll