Added a draft property to Post entity

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck)
2012-09-05 13:23:03 +02:00
parent 773ea55e3d
commit f16e4c4244
5 changed files with 63 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ class AdminController extends Controller
}
} else {
$post = new Post();
$post->setDraft(true);
}
$form = $this->createForm(new PostType(), $post);
$request = $this->getRequest();