Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Item "isSelected" for "" does not exist in WhiteOctoberAdminBundle:default:list.html.twig at line 93 #36

Open
damienalexandre opened this issue Jul 7, 2011 · 5 comments

Comments

@damienalexandre
Copy link

Hello,
I have this exception when I'm testing the Bundle, I can't do anything about it so I'm submiting this bug.

I have followed the documentation, here is my code:

<?php
namespace Acme\DemoBundle\Admin;
use WhiteOctober\AdminBundle\DataManager\Doctrine\ORM\Admin\DoctrineORMAdmin;

class ArticleAdmin extends DoctrineORMAdmin
{
protected function configure()
{
    $this
      ->setName('Articles')
      ->setDataClass('Acme\DemoBundle\Entity\Article')
      ->addActions(array(
          'doctrine.orm.crud',
      ))
      ->addFields(array(
          'title',
          'body',
      ))
  ;
}
}

My config:

white_october_admin:
    data_managers:
        doctrine:
            orm:    true
            odm:    false
        mandango:   false
    admins:
        - { class: Acme\DemoBundle\Admin\ArticleAdmin }

And a simple annotation mapped entity :

class Article
{
/**
 * @var integer $id
 *
 * @ORM\Column(name="id", type="integer")
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="AUTO")
 */
private $id;

/**
 * @var string $title
 *
 * @ORM\Column(name="title", type="string", length=255)
 */
private $title;

/**
 * @var text $body
 *
 * @ORM\Column(name="body", type="text")
 */
private $body;

As you can see it's very simple.

I'm running a Symfony SE RC4 and everything else is okay.

As the issue appears to be in Twig, is quite difficult to catch inside the stack trace. Can anyone reproduce this? Thank you.

@damienalexandre
Copy link
Author

For people who want to play with the Bundle, here is how to disable the batch:

->setActionOption("list", "batch", false)

@Nelrann
Copy link

Nelrann commented Sep 14, 2011

same probleme

@makasim
Copy link
Contributor

makasim commented Sep 28, 2011

same problem

@pacoVela
Copy link

pacoVela commented Oct 6, 2011

Same problem

@richsage
Copy link
Contributor

I've just experienced this here (so far I've only personally used the Mandango admin, but now I've experienced it with the Doctrine ORM). I'll take a look...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants