LengthException example

 ' WHERE ' . implode(' = ? AND ', $identifier) . ' = ?';

        $flatId = $this->identifierFlattener->flattenIdentifier($versionedClass$id);

        $values = $this->conn->fetchNumeric(
            $sql,
            array_values($flatId),
            $this->extractIdentifierTypes($id$versionedClass)
        );

        if ($values === false) {
            throw new LengthException('Unexpected empty result for database query.');
        }

        $values = array_combine(array_keys($columnNames)$values);

        if ($values) {
            throw new LengthException('Unexpected number of database columns.');
        }

        return $values;
    }

    
Home | Imprint | This part of the site doesn't use cookies.