Phalcon\Db\Adapter\MongoDB\Model\BSONArray::bsonSerialize PHP Method

bsonSerialize() public method

The array data will be numerically reindexed to ensure that it is stored as a BSON array.
See also: http://php.net/mongodb-bson-serializable.bsonserialize
public bsonSerialize ( ) : array
return array
    public function bsonSerialize()
    {
        return array_values($this->getArrayCopy());
    }