Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
WoohooLabs
Yin
JsonApi
Hydrator
Relationship
ToManyRelationship
isEmpty
WoohooLabs\Yin\JsonApi\Hydrator\Relationship\ToManyRelationship::isEmpty PHP Method
ToManyRelationship Class Documentation
显示文件
Open project: woohoolabs/yin
isEmpty()
public
method
Returns true if this relationship is empty, not containing a resource identifier This will be the case when the request want to clear a relationship and sends an empty array as data.
public
isEmpty
( ) :
boolean
return
boolean
public function isEmpty() { return empty($this->resourceIdentifiers); }
ToManyRelationship
__construct
addResourceIdentifier
getResourceIdentifierIds
getResourceIdentifierTypes
getResourceIdentifiers
isEmpty