Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed some probles with fixtures and updated to RC4

  • Loading branch information...
commit 0e2386dca84f21210be500ab164bf3b2c3e7bede 1 parent fc3e648
@carlossg00 authored
View
2  Controller/CategoryController.php
@@ -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);
View
6 DataFixtures/ORM/data.php
@@ -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");
@@ -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");
@@ -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]);
View
5 Form/CategoryType.php
@@ -20,4 +20,9 @@ public function getDefaultOptions(array $options)
'data_class' => 'Application\Jobeet2Bundle\Entity\Category',
);
}
+
+ public function getName()
+ {
+ return 'category';
+ }
}
View
7 Form/JobType.php
@@ -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';
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.