dev/core#3719 fix inconistent handling of job_type:label
[civicrm-core.git] / CRM / Core / DAO / Note.php
index 35067ea2924c30d36825b0113fa571517b62032d..e70f2b811a185dfd160fdfcc9c49fda45689d3d5 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/Note.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:a84f607a5a29a8977287f694f05ab721)
+ * (GenCodeChecksum:5f542bdf0c411eeefbf3ec22514d7407)
  */
 
 /**
@@ -40,7 +40,9 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO {
   /**
    * Note 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;
 
@@ -48,62 +50,80 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO {
    * Name of table where item being referenced is stored.
    *
    * @var string
+   *   (SQL type: varchar(64))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $entity_table;
 
   /**
    * Foreign key to the referenced item.
    *
-   * @var int
+   * @var int|string
+   *   (SQL type: int unsigned)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $entity_id;
 
   /**
    * Note and/or Comment.
    *
-   * @var text
+   * @var string|null
+   *   (SQL type: text)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $note;
 
   /**
    * FK to Contact ID creator
    *
-   * @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;
 
   /**
    * Date attached to the note
    *
-   * @var timestamp
+   * @var string|null
+   *   (SQL type: timestamp)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $note_date;
 
   /**
    * When the note was created.
    *
-   * @var timestamp
+   * @var string
+   *   (SQL type: timestamp)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $created_date;
 
   /**
    * When was this note last modified/edited
    *
-   * @var timestamp
+   * @var string|null
+   *   (SQL type: timestamp)
+   *   Note that values will be retrieved from the database as a string.
    */
   public $modified_date;
 
   /**
    * subject of note description
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $subject;
 
   /**
    * Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)
    *
-   * @var string
+   * @var string|null
+   *   (SQL type: varchar(255))
+   *   Note that values will be retrieved from the database as a string.
    */
   public $privacy;
 
@@ -180,7 +200,8 @@ class CRM_Core_DAO_Note extends CRM_Core_DAO {
           'bao' => 'CRM_Core_BAO_Note',
           'localizable' => 0,
           'pseudoconstant' => [
-            'callback' => 'CRM_Core_BAO_Note::entityTables',
+            'optionGroupName' => 'note_used_for',
+            'optionEditPath' => 'civicrm/admin/options/note_used_for',
           ],
           'add' => '1.1',
         ],