62 if (!$sectionConnection->getConnection())
64 throw new BaseException(
'The sectionConnection must have an connection');
68 'SECTION_ID' => $sectionConnection->getSection()->getId(),
69 'CONNECTION_ID' => $sectionConnection->getConnection()->getId(),
70 'VENDOR_SECTION_ID' => $sectionConnection->getVendorSectionId(),
71 'SYNC_TOKEN' => $sectionConnection->getSyncToken(),
72 'PAGE_TOKEN' => $sectionConnection->getPageToken(),
74 'LAST_SYNC_DATE' => $sectionConnection->getLastSyncDate()
75 ? $sectionConnection->getLastSyncDate()->getDate()
77 'LAST_SYNC_STATUS' => $sectionConnection->getLastSyncStatus(),
78 'VERSION_ID' => $sectionConnection->getVersionId(),
137 $section = $objectEO->getSection();
138 if ($section !==
null)
149 $connection = $objectEO->getConnection();
150 if ($connection !==
null)
163 ->setId($objectEO->getId())
164 ->setSection($section)
165 ->setConnection($connection)
166 ->setVendorSectionId($objectEO->getVendorSectionId())
167 ->setSyncToken($objectEO->getSyncToken())
168 ->setPageToken($objectEO->getPageToken())
169 ->setActive($objectEO->getActive())
170 ->setLastSyncDate(
new Core\
Base\
Date($objectEO->getLastSyncDate()))
171 ->setLastSyncStatus($objectEO->getLastSyncStatus())
172 ->setVersionId($objectEO->get(
'VERSION_ID'))
173 ->setPrimary($objectEO->getIsPrimary())