/** * Get a specific physical object related to this info object * * @param integer $physicalObjectId the id of the related physical object * @return mixed the QubitRelation object on success, null if no match found */ public function getPhysicalObject($physicalObjectId) { $criteria = new Criteria(); $criteria->add(QubitRelation::OBJECT_ID, $this->id); $criteria->add(QubitRelation::SUBJECT_ID, $physicalObjectId); return QubitRelation::getOne($criteria); }