@@ -155,6 +155,9 @@ class Circle extends ManagedModel implements IEntity, IDeserializable, IQueryRow
155155 /** @var string */
156156 private $ singleId = '' ;
157157
158+ /** @var int */
159+ private $ circleId = 0 ;
160+
158161 /** @var int */
159162 private $ config = 0 ;
160163
@@ -245,6 +248,24 @@ public function getSingleId(): string {
245248 return $ this ->singleId ;
246249 }
247250
251+ /**
252+ * @param int $circleId
253+ *
254+ * @return self
255+ */
256+ public function setCircleId (int $ circleId ): self {
257+ $ this ->circleId = $ circleId ;
258+
259+ return $ this ;
260+ }
261+
262+ /**
263+ * @return int
264+ */
265+ public function getCircleId (): int {
266+ return $ this ->circleId ;
267+ }
268+
248269 /**
249270 * @return string
250271 * @deprecated - removed in NC23
@@ -820,6 +841,7 @@ public function import(array $data): IDeserializable {
820841 */
821842 public function jsonSerialize (): array {
822843 $ arr = [
844+ 'circleId ' => $ this ->getCircleId (),
823845 'id ' => $ this ->getSingleId (),
824846 'name ' => $ this ->getName (),
825847 'displayName ' => $ this ->getDisplayName (),
@@ -876,7 +898,8 @@ public function importFromDatabase(array $data, string $prefix = ''): IQueryRow
876898 throw new CircleNotFoundException ();
877899 }
878900
879- $ this ->setSingleId ($ this ->get ($ prefix . 'unique_id ' , $ data ))
901+ $ this ->setCircleId ($ this ->getInt ($ prefix . 'id ' , $ data ))
902+ ->setSingleId ($ this ->get ($ prefix . 'unique_id ' , $ data ))
880903 ->setName ($ this ->get ($ prefix . 'name ' , $ data ))
881904 ->setDisplayName ($ this ->get ($ prefix . 'display_name ' , $ data ))
882905 ->setSanitizedName ($ this ->get ($ prefix . 'sanitized_name ' , $ data ))
0 commit comments