* fixed job posting issues.
This commit is contained in:
Sebastian Marcet 2014-11-28 13:32:40 -03:00
parent b08cab3c56
commit 0b393e5a04
3 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,6 @@ final class EventRegistrationRequestFactory
$event = new EventPage; $event = new EventPage;
$event->Title = $request->Title; $event->Title = $request->Title;
$event->ClassName = 'EventPage'; $event->ClassName = 'EventPage';
$event->ParentID = 41;
$event->EventLink = $request->Url; $event->EventLink = $request->Url;
$event->EventLinkLabel = $request->Label; $event->EventLinkLabel = $request->Label;
$event->EventStartDate = $request->StartDate; $event->EventStartDate = $request->StartDate;

View File

@ -98,6 +98,7 @@ final class JobFactory implements IJobFactory {
public function buildJob(IJobRegistrationRequest $request){ public function buildJob(IJobRegistrationRequest $request){
$job = new JobPage; $job = new JobPage;
$job->JobPostedDate = $request->PostDate; $job->JobPostedDate = $request->PostDate;
$job->ClassName = 'JobPage';
$job->JobCompany = $request->CompanyName; $job->JobCompany = $request->CompanyName;
$job->JobCompany = $request->CompanyName; $job->JobCompany = $request->CompanyName;
$job->ExpirationDate = $request->ExpirationDate; $job->ExpirationDate = $request->ExpirationDate;

View File

@ -26,6 +26,6 @@ implements IJobPublishingService
if(!$parent) throw new NotFoundEntityException('JobHolder',''); if(!$parent) throw new NotFoundEntityException('JobHolder','');
$job->setParent($parent); // Should set the ID once the Holder is created... $job->setParent($parent); // Should set the ID once the Holder is created...
$job->write(); $job->write();
//$job->doPublish(); $job->doPublish();
} }
} }