parent
b08cab3c56
commit
0b393e5a04
@ -91,7 +91,6 @@ final class EventRegistrationRequestFactory
|
||||
$event = new EventPage;
|
||||
$event->Title = $request->Title;
|
||||
$event->ClassName = 'EventPage';
|
||||
$event->ParentID = 41;
|
||||
$event->EventLink = $request->Url;
|
||||
$event->EventLinkLabel = $request->Label;
|
||||
$event->EventStartDate = $request->StartDate;
|
||||
|
@ -98,6 +98,7 @@ final class JobFactory implements IJobFactory {
|
||||
public function buildJob(IJobRegistrationRequest $request){
|
||||
$job = new JobPage;
|
||||
$job->JobPostedDate = $request->PostDate;
|
||||
$job->ClassName = 'JobPage';
|
||||
$job->JobCompany = $request->CompanyName;
|
||||
$job->JobCompany = $request->CompanyName;
|
||||
$job->ExpirationDate = $request->ExpirationDate;
|
||||
|
@ -26,6 +26,6 @@ implements IJobPublishingService
|
||||
if(!$parent) throw new NotFoundEntityException('JobHolder','');
|
||||
$job->setParent($parent); // Should set the ID once the Holder is created...
|
||||
$job->write();
|
||||
//$job->doPublish();
|
||||
$job->doPublish();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user