コード例 #1
0
 /**
  * Get the associated PermissionBackup object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     PermissionBackup The associated PermissionBackup object.
  * @throws     PropelException
  */
 public function getPermissionBackup(PropelPDO $con = null)
 {
     if ($this->aPermissionBackup === null && $this->permission_id !== null) {
         $c = new Criteria(PermissionBackupPeer::DATABASE_NAME);
         $c->add(PermissionBackupPeer::ID, $this->permission_id);
         $this->aPermissionBackup = PermissionBackupPeer::doSelectOne($c, $con);
         /* The following can be used additionally to
         		   guarantee the related object contains a reference
         		   to this object.  This level of coupling may, however, be
         		   undesirable since it could result in an only partially populated collection
         		   in the referenced object.
         		   $this->aPermissionBackup->addRolePermissionBackups($this);
         		 */
     }
     return $this->aPermissionBackup;
 }