Skip to content

Notice: Undefined index #294

Open
Open
@malas

Description

@malas

When running the command doctrine:fixtures:load we get e PHP notice in the data fixtures line

$entity_manager->flush();

The notice is as follows:

[Symfony\Component\Debug\Exception\ContextErrorException]  
Notice: Undefined index: 00000000008d0501000000004e061b78

The value of index is different every time we run the command. We use one file for the datafixtures, nothing fancy.
If we add --no-debug option, the data is loaded correctly.

Has someone also seen this bug? What are the possible reasons of this?

Our composer file:

"require": {
        "php": ">=5.5.9",
        "symfony/symfony": "3.4.*",
        "doctrine/orm": "^2.5",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/doctrine-cache-bundle": "^1.2",
        "symfony/swiftmailer-bundle": "^2.3",
        "symfony/monolog-bundle": "^3.0",
        "symfony/polyfill-apcu": "^1.0",
        "sensio/distribution-bundle": "^5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "incenteev/composer-parameter-handler": "^2.0",

        "friendsofsymfony/user-bundle": "~2.0@dev",
        "whiteoctober/swiftmailerdbbundle": "^1.0",
        "whiteoctober/tcpdf-bundle": "1.0.*",
        "gedmo/doctrine-extensions": "2.4.*",
        "stof/doctrine-extensions-bundle": "^1.2",
        "doctrine/doctrine-fixtures-bundle": "^2.2",
        "Trsteel/ckeditor-bundle": "^1.10",
        "gregwar/captcha-bundle": "2.*",
        "phpoffice/phpexcel": "^1.8",
        "doctrine/doctrine-migrations-bundle": "^1.2",
        "paragonie/random_compat": "~1.4",
        "malas/php-bounce-handler": "^0.1.0",
        "friendsofsymfony/elastica-bundle": "^4.0",
        "beberlei/DoctrineExtensions": "^1.0",
        "symfony/dom-crawler": "^3.4",
        "vimeo/vimeo-api": "^2.0",
        "squizlabs/php_codesniffer": "^3.2"
    },
    "require-dev": {
        "sensio/generator-bundle": "^3.0",

        "phpunit/phpunit": "^6.0"       
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions