update : 2015.11.03
php.shukuma.com검색:
|
MongoResultException::getDocument(PECL mongo >=1.3.0) MongoResultException::getDocument — Retrieve the full result document 설명
public array MongoResultException::getDocument
( void
)
Retrieves the full error result document. 인수이 함수는 인수가 없습니다. 반환값The full result document as an array, including partial data if available and additional keys. 예제Example #1 MongoResultException::getDocument() example
<?php 위 예제들의 출력 예시: $set is not valid for storage. array(3) { ["lastErrorObject"]=> array(5) { ["connectionId"]=> int(6) ["err"]=> string(30) "$set is not valid for storage." ["code"]=> int(52) ["n"]=> int(0) ["ok"]=> float(1) } ["ok"]=> float(0) ["errmsg"]=> string(30) "$set is not valid for storage." } |