Skip to content

Commit

Permalink
fixed some probles with fixtures and updated to RC4
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossg00 committed Jul 15, 2011
1 parent fc3e648 commit 0e2386d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Controller/CategoryController.php
Expand Up @@ -31,7 +31,7 @@ public function showAction($slug)
$page = $this->getRequest()->query->get('page', 1);


$adapter = $this->get('knplabs_paginator.adapter');
$adapter = $this->get('knp_paginator.adapter');
$adapter->setQuery($repository->getActiveJobsByCategoryQuery($category));
$adapter->setDistinct(true);

Expand Down
6 changes: 3 additions & 3 deletions DataFixtures/ORM/data.php
Expand Up @@ -45,7 +45,7 @@ public function load($manager)
$job1->setHowToApply("Send your resume to fabien.pontecier [at] sensio.com");
$job1->setIsActivated(true);
$job1->setIsPublic(true);
$job1->set_Token("job_sensio_labs");
$job1->setToken("job_sensio_labs");
$job1->setEmail("job@example.com");


Expand All @@ -68,7 +68,7 @@ public function load($manager)
$job2->setHowToApply("Send your resume to fabien.pontecier [at] sensio.com");
$job2->setIsActivated(true);
$job2->setIsPublic(true);
$job2->set_Token("job_extreme_sensi");
$job2->setToken("job_extreme_sensi");
$job2->setEmail("job@example.com");


Expand Down Expand Up @@ -104,7 +104,7 @@ public function load($manager)
$jobs[$i]->setHowToApply("Send your resume to lorem.ipsum [at] Company".$i);
$jobs[$i]->setIsActivated(true);
$jobs[$i]->setIsPublic(true);
$jobs[$i]->set_Token("job_".$i);
$jobs[$i]->setToken("job_".$i);
$jobs[$i]->setEmail("job@example.com");

$manager->persist($jobs[$i]);
Expand Down
5 changes: 5 additions & 0 deletions Form/CategoryType.php
Expand Up @@ -20,4 +20,9 @@ public function getDefaultOptions(array $options)
'data_class' => 'Application\Jobeet2Bundle\Entity\Category',
);
}

public function getName()
{
return 'category';
}
}
7 changes: 5 additions & 2 deletions Form/JobType.php
Expand Up @@ -40,8 +40,11 @@ public function getDefaultOptions(array $options)
{
return array(
'data_class' => 'Application\Jobeet2Bundle\Entity\Job',
//'csrf_protection' => true,
//'csrf_field_name' => '_token',
);
}

public function getName()
{
return 'job';
}
}

0 comments on commit 0e2386d

Please sign in to comment.