sonata-project/SonataAdminBundle — Issue #334: Tutorial for AdminBundle "creating your first admin class"
Author: robingood
Created: 2011-10-12 18:58:58+00:00
State: open

Hello,

I have to say I am very disappointed by the poor quality of the tutorial. I am new to SonataAdminBundle and I was searching for an entry-point. The tutorial seemed like the perfect opportunity. But after 2 hours, I had to gave up because of the errors.

To name a few:

1. defining_entries.rst ; Post.php you define "$commentsCloseAt;" and in the XML mapping file, you define "commentsClose_at" Of course, errors appear after

2. In general. XML mapping file, you have :

In the Post.php file you define

public function preInsert($object)
{
$object->setCreatedAt(new \DateTime);
$object->setUpdatedAt(new \DateTime);
}

public function preUpdate($object)
{
$object->setUpdatedAt(new \DateTime);
}

So of course, the "preInsert" method rests undefined,

And I could give more errors.

Wouldn't be better to actually put a working ".zip" as tutorial? I mean a real project, done and tested by you? Because this "tutorial" seems to have been written by hand. This would help increase the learning curve a lot.

Thank you