WhiteOctoberAdminBundle
WhiteOctoberAdminBundle copied to clipboard
Item "isSelected" for "" does not exist in WhiteOctoberAdminBundle:default:list.html.twig at line 93
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.
For people who want to play with the Bundle, here is how to disable the batch:
->setActionOption("list", "batch", false)
same probleme
same problem
Same problem
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...