*
* Generated from xml/schema/CRM/Campaign/Survey.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:45c10db72afe877c41ddb78b79153648)
+ * (GenCodeChecksum:8fec5a0ffb4667af4f00820de74aa577)
*/
/**
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'localizable' => 0,
+ 'pseudoconstant' => [
+ 'table' => 'civicrm_option_group',
+ 'keyColumn' => 'id',
+ 'labelColumn' => 'title',
+ 'nameColumn' => 'name',
+ 'condition' => 'name LIKE "civicrm_survey_%"',
+ ],
'add' => '3.3',
],
'bypass_confirm' => [
--- /dev/null
+<?php
+/*
+ +--------------------------------------------------------------------+
+ | Copyright CiviCRM LLC. All rights reserved. |
+ | |
+ | This work is published under the GNU AGPLv3 license with some |
+ | permitted exceptions and without any warranty. For full license |
+ | and copyright information, see https://civicrm.org/licensing |
+ +--------------------------------------------------------------------+
+ */
+namespace Civi\Api4;
+
+/**
+ * Survey entity.
+ *
+ * @see https://docs.civicrm.org/user/en/latest/survey/what-is-civisurvey/
+ * @searchable secondary
+ * @since 5.43
+ * @package Civi\Api4
+ */
+class Survey extends Generic\DAOEntity {
+
+}
'Logging',
// Skip message template because workflow_id/workflow_name are sync'd.
'MessageTemplate',
+ // Skip survey because the pseudoconstant will have no options.
+ 'Survey',
];
if ($sequential === TRUE) {
return $entitiesWithout;
<default>NULL</default>
<comment>Used to store option group id.</comment>
<add>3.3</add>
+ <pseudoconstant>
+ <table>civicrm_option_group</table>
+ <keyColumn>id</keyColumn>
+ <labelColumn>title</labelColumn>
+ <nameColumn>name</nameColumn>
+ <condition>name LIKE "civicrm_survey_%"</condition>
+ </pseudoconstant>
</field>
<field>
<name>bypass_confirm</name>