Merge pull request #23419 from chrisgaraffa/contactheader-regions
[civicrm-core.git] / CRM / Core / DAO / OpenID.php
index 166758db6f1f7efb8803d62777e9de61b2134525..7a6650f7bc874a350cd10686a7f6ce6e0399fc8e 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/OpenID.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:6547ff2f60e61de44f3ca5a866c1df6a)
+ * (GenCodeChecksum:7c70e03ffe06633c9e61c5845967d286)
  */
 
 /**
@@ -33,42 +33,54 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO {
   /**
    * Unique OpenID ID
    *
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $id;
 
   /**
    * FK to Contact ID
    *
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $contact_id;
 
   /**
    * Which Location does this email belong to.
    *
-   * @var int
+   * @var int|string|null
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $location_type_id;
 
   /**
    * the OpenID (or OpenID-style http://username.domain/) unique identifier for this contact mainly used for logging in to CiviCRM
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $openid;
 
   /**
    * Whether or not this user is allowed to login
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $allowed_to_login;
 
   /**
    * Is this the primary email for this contact and location.
    *
-   * @var bool
+   * @var bool|string
+   *   (SQL type: tinyint)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $is_primary;
 
@@ -201,6 +213,7 @@ class CRM_Core_DAO_OpenID extends CRM_Core_DAO {
           'type' => CRM_Utils_Type::T_BOOLEAN,
           'title' => ts('Primary ID'),
           'description' => ts('Is this the primary email for this contact and location.'),
+          'required' => TRUE,
           'where' => 'civicrm_openid.is_primary',
           'default' => '0',
           'table_name' => 'civicrm_openid',