I am using mongodb and the collections manager.
I have a collection that has an int in it:
    /**
     *
     * @var int
     */
    public $invoice_count;In mongo db I have manually set invoice_count(Int64) to 0(zero).
When I try and access $company->invoice_count after:
    $company = CompanyInvoices::findFirst(array(
        array("company_id" => $company->id)
    ));Then I get:
    zero-length keys are not allowed, did you use $ with double quotes?Why? Everything is ok if in mongodb invoice_count(Int64) is set to 1. When its zero then if falls over....
Is this a bug?