Closed
Description
Trying to insert a particular document into an existing collection. This is the error that I am getting:
PHP Fatal error: Uncaught MongoDB\Driver\Exception\UnexpectedValueException: Got unsupported type 0 'unknown' in /home/live/daemon/coreClasses/vendor/mongodb/mongodb/src/Operation/InsertOne.php:98
Other documents are inserting fine.
This is the document that I am trying to insert:
pax Object
(
[paxID] => 1125318806
[agencyID] => 91215644
[bookings] => Array
(
[0] => Array
(
[bookingID] => 1529267
[transactions] => Array
(
[0] => Array
(
[tranType] => Air
[tranDate] => 20170201
[tranTime] =>
[opCode] => 00000030cx
[majOrig] =>
[majDest] => hkg
[hiFare] => 1737.00
[loFare] => 1737.00
[baseVal] => 1470.83
[taxVal] => 266.17
[ttlComm] => 86.83
[reasonCode] => low
[paxCount] => 1
[tktNum] => 1601225916015
[confNum] => pklwev
[advPur] => 0
[tranID] => 922
[segments] => Array
(
[0] => Array
(
[route] => lhr->hkg
[dep] => lhr
[dest] => hkg
[depDate] => 20170213
[arrDate] => 20170214
[opClass] => r
[depTime] => 0600
[arrTime] => 0150
[flightNum] => cx00250
[arClass] => r
)
)
)
)
)
)
)
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels