Added a draft flag to the News Entity

Solves issue #11

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely
2012-08-29 19:36:55 +02:00
parent 9db5619180
commit faf99b627e
3 changed files with 71 additions and 1 deletions

View File

@@ -24,7 +24,9 @@ class NewsController extends Controller
public function sideListAction()
{
$newsRepo = $this->getDoctrine()->getRepository('KekRozsakFrontBundle:News');
$searchCriteria = array();
$searchCriteria = array(
'draft' => false;
);
if (
!is_object($this->get('security.context')->getToken())
|| !is_object($this->get('security.context')->getToken()->getUser())