parent
b08cab3c56
commit
0b393e5a04
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user