Interface yii\db\ActiveRecordInterface

Implemented bybackend\models\Settings, common\models\ItaliaComuni, common\models\ItaliaProvince, common\models\ItaliaRegioni, common\models\User, lispa\amos\admin\models\UserContact, lispa\amos\admin\models\UserLockout, lispa\amos\admin\models\UserProfile, lispa\amos\admin\models\UserProfileAgeGroup, lispa\amos\admin\models\UserProfileArea, lispa\amos\admin\models\UserProfileReactivationRequest, lispa\amos\admin\models\UserProfileRole, lispa\amos\admin\models\UserProfileStatiCivili, lispa\amos\admin\models\UserProfileTitoliStudio, lispa\amos\admin\models\base\UserContact, lispa\amos\admin\models\base\UserProfile, lispa\amos\admin\models\base\UserProfileAgeGroup, lispa\amos\admin\models\base\UserProfileArea, lispa\amos\admin\models\base\UserProfileReactivationRequest, lispa\amos\admin\models\base\UserProfileRole, lispa\amos\admin\models\base\UserProfileStatiCivili, lispa\amos\admin\models\base\UserProfileTitoliStudio, lispa\amos\admin\models\search\UserContactSearch, lispa\amos\admin\models\search\UserProfileAgeGroupSearch, lispa\amos\admin\models\search\UserProfileAreaSearch, lispa\amos\admin\models\search\UserProfileRoleSearch, lispa\amos\admin\models\search\UserProfileSearch, lispa\amos\attachments\components\FileActiveRecord, lispa\amos\attachments\models\File, lispa\amos\attachments\models\FileRefs, lispa\amos\chat\models\Conversation, lispa\amos\chat\models\Message, lispa\amos\chat\models\User, lispa\amos\chat\models\base\Conversation, lispa\amos\chat\models\base\Message, lispa\amos\chat\models\base\User, lispa\amos\chat\models\search\UserContactsQuery, lispa\amos\comments\models\Comment, lispa\amos\comments\models\CommentContextAttribute, lispa\amos\comments\models\CommentReply, lispa\amos\comments\models\base\Comment, lispa\amos\comments\models\base\CommentContextAttribute, lispa\amos\comments\models\base\CommentReply, lispa\amos\comments\models\search\CommentReplySearch, lispa\amos\comments\models\search\CommentSearch, lispa\amos\community\models\Community, lispa\amos\community\models\CommunityType, lispa\amos\community\models\CommunityUserMm, lispa\amos\community\models\base\Community, lispa\amos\community\models\base\CommunityType, lispa\amos\community\models\base\CommunityUserMm, lispa\amos\community\models\search\CommunitySearch, lispa\amos\community\models\search\CommunityUserMmSearch, lispa\amos\comuni\models\IstatCittaMetropolitane, lispa\amos\comuni\models\IstatComuni, lispa\amos\comuni\models\IstatComuniCap, lispa\amos\comuni\models\IstatContinenti, lispa\amos\comuni\models\IstatNazioni, lispa\amos\comuni\models\IstatProvince, lispa\amos\comuni\models\IstatRegioni, lispa\amos\comuni\models\IstatUnioneDeiComuni, lispa\amos\comuni\models\base\IstatCittaMetropolitane, lispa\amos\comuni\models\base\IstatComuni, lispa\amos\comuni\models\base\IstatComuniCap, lispa\amos\comuni\models\base\IstatContinenti, lispa\amos\comuni\models\base\IstatNazioni, lispa\amos\comuni\models\base\IstatProvince, lispa\amos\comuni\models\base\IstatRegioni, lispa\amos\comuni\models\base\IstatUnioneDeiComuni, lispa\amos\comuni\models\search\IstatCittaMetropolitaneSearch, lispa\amos\comuni\models\search\IstatComuniSearch, lispa\amos\comuni\models\search\IstatContinentiSearch, lispa\amos\comuni\models\search\IstatNazioniSearch, lispa\amos\comuni\models\search\IstatProvinceSearch, lispa\amos\comuni\models\search\IstatRegioniSearch, lispa\amos\comuni\models\search\IstatUnioneDeiComuniSearch, lispa\amos\core\record\AmosRecordAudit, lispa\amos\core\record\ContentModel, lispa\amos\core\record\NetworkModel, lispa\amos\core\record\Record, lispa\amos\core\user\User, lispa\amos\cwh\models\CwhAuthAssignment, lispa\amos\cwh\models\CwhConfig, lispa\amos\cwh\models\CwhConfigContents, lispa\amos\cwh\models\CwhNodi, lispa\amos\cwh\models\CwhPubblicazioni, lispa\amos\cwh\models\CwhPubblicazioniCwhNodiEditoriMm, lispa\amos\cwh\models\CwhPubblicazioniCwhNodiValidatoriMm, lispa\amos\cwh\models\CwhRegolePubblicazione, lispa\amos\cwh\models\CwhTagInterestMm, lispa\amos\cwh\models\CwhTagOwnerInterestMm, lispa\amos\cwh\models\base\CwhAuthAssignment, lispa\amos\cwh\models\base\CwhConfig, lispa\amos\cwh\models\base\CwhConfigContents, lispa\amos\cwh\models\base\CwhNodi, lispa\amos\cwh\models\base\CwhNodiView, lispa\amos\cwh\models\base\CwhPubblicazioni, lispa\amos\cwh\models\base\CwhPubblicazioniCwhNodiEditoriMm, lispa\amos\cwh\models\base\CwhPubblicazioniCwhNodiValidatoriMm, lispa\amos\cwh\models\base\CwhRegolePubblicazione, lispa\amos\cwh\models\base\CwhTagInterestMm, lispa\amos\cwh\models\base\CwhTagOwnerInterestMm, lispa\amos\cwh\models\search\CwhAuthAssignmentSearch, lispa\amos\cwh\models\search\CwhConfigSearch, lispa\amos\cwh\models\search\CwhNodiSearch, lispa\amos\cwh\models\search\CwhPubblicazioniSearch, lispa\amos\cwh\models\search\CwhRegolePubblicazioneSearch, lispa\amos\dashboard\models\AmosUserDashboards, lispa\amos\dashboard\models\AmosUserDashboardsWidgetMm, lispa\amos\dashboard\models\AmosWidgets, lispa\amos\dashboard\models\base\AmosUserDashboards, lispa\amos\dashboard\models\base\AmosUserDashboardsWidgetMm, lispa\amos\dashboard\models\base\AmosWidgets, lispa\amos\dashboard\models\search\AmosUserDashboardsSearch, lispa\amos\dashboard\models\search\AmosWidgetsSearch, lispa\amos\discussioni\models\DiscussioniCommenti, lispa\amos\discussioni\models\DiscussioniRisposte, lispa\amos\discussioni\models\DiscussioniTopic, lispa\amos\discussioni\models\base\DiscussioniCommenti, lispa\amos\discussioni\models\base\DiscussioniRisposte, lispa\amos\discussioni\models\base\DiscussioniTopic, lispa\amos\discussioni\models\search\DiscussioniCommentiSearch, lispa\amos\discussioni\models\search\DiscussioniRisposteSearch, lispa\amos\discussioni\models\search\DiscussioniTopicSearch, lispa\amos\documenti\models\Documenti, lispa\amos\documenti\models\DocumentiCategorie, lispa\amos\documenti\models\base\Documenti, lispa\amos\documenti\models\base\DocumentiCategorie, lispa\amos\documenti\models\search\DocumentiCategorieSearch, lispa\amos\documenti\models\search\DocumentiSearch, lispa\amos\een\models\EenExprOfInterest, lispa\amos\een\models\EenExprOfInterestHistory, lispa\amos\een\models\EenNetworkNode, lispa\amos\een\models\EenPartnershipProposal, lispa\amos\een\models\EenStaff, lispa\amos\een\models\base\EenExprOfInterest, lispa\amos\een\models\base\EenExprOfInterestHistory, lispa\amos\een\models\base\EenNetworkNode, lispa\amos\een\models\base\EenPartnershipProposal, lispa\amos\een\models\base\EenStaff, lispa\amos\een\models\search\EenExprOfInterestSearch, lispa\amos\een\models\search\EenPartnershipProposalSearch, lispa\amos\emailmanager\models\EmailSpool, lispa\amos\emailmanager\models\EmailTemplate, lispa\amos\emailmanager\models\search\EmailSpoolSearch, lispa\amos\emailmanager\models\search\EmailTemplateSearch, lispa\amos\events\models\Event, lispa\amos\events\models\EventLengthMeasurementUnit, lispa\amos\events\models\EventMembershipType, lispa\amos\events\models\EventType, lispa\amos\events\models\EventTypeContext, lispa\amos\events\models\base\Event, lispa\amos\events\models\base\EventLengthMeasurementUnit, lispa\amos\events\models\base\EventMembershipType, lispa\amos\events\models\base\EventType, lispa\amos\events\models\base\EventTypeContext, lispa\amos\events\models\search\EventSearch, lispa\amos\events\models\search\EventTypeSearch, lispa\amos\faq\models\Faq, lispa\amos\faq\models\FaqAmosWidgetMm, lispa\amos\faq\models\FaqCategories, lispa\amos\faq\models\FaqCategoriesSearch, lispa\amos\faq\models\FaqSearch, lispa\amos\faq\models\FaqStato, lispa\amos\faq\models\FaqStatoSearch, lispa\amos\faq\models\base\Faq, lispa\amos\faq\models\base\FaqAmosWidgetMm, lispa\amos\faq\models\base\FaqCategories, lispa\amos\faq\models\base\FaqStato, lispa\amos\inforeq\models\Inforeq, lispa\amos\inforeq\models\InforeqArgomenti, lispa\amos\inforeq\models\base\Inforeq, lispa\amos\inforeq\models\base\InforeqArgomenti, lispa\amos\inforeq\models\search\InforeqArgomentiSearch, lispa\amos\inforeq\models\search\InforeqSearch, lispa\amos\invitations\models\Invitation, lispa\amos\invitations\models\InvitationUser, lispa\amos\invitations\models\base\Invitation, lispa\amos\invitations\models\base\InvitationUser, lispa\amos\invitations\models\search\InvitationSearch, lispa\amos\mobile\bridge\modules\v1\models\AccessTokens, lispa\amos\mobile\bridge\modules\v1\models\ChatMessages, lispa\amos\mobile\bridge\modules\v1\models\User, lispa\amos\mobile\bridge\modules\v1\models\base\AccessTokens, lispa\amos\myactivities\basic\CommunityToValidate, lispa\amos\myactivities\basic\DiscussionToValidate, lispa\amos\myactivities\basic\DocumentToValidate, lispa\amos\myactivities\basic\ExpressionOfInterestToEvaluate, lispa\amos\myactivities\basic\NewsToValidate, lispa\amos\myactivities\basic\PartnershipProfileToValidate, lispa\amos\myactivities\basic\ReportToRead, lispa\amos\myactivities\basic\RequestToParticipateCommunity, lispa\amos\myactivities\basic\RequestToParticipateCommunityForManager, lispa\amos\myactivities\basic\SurveyToValidate, lispa\amos\myactivities\basic\UserProfileActivationRequest, lispa\amos\myactivities\basic\UserProfileToValidate, lispa\amos\myactivities\basic\WaitingContacts, lispa\amos\news\models\News, lispa\amos\news\models\NewsCategorie, lispa\amos\news\models\NewsCategoryRolesMm, lispa\amos\news\models\base\News, lispa\amos\news\models\base\NewsCategorie, lispa\amos\news\models\base\NewsCategoryRolesMm, lispa\amos\news\models\search\NewsCategorieSearch, lispa\amos\news\models\search\NewsSearch, lispa\amos\notificationmanager\models\Notification, lispa\amos\notificationmanager\models\NotificationConf, lispa\amos\notificationmanager\models\NotificationsRead, lispa\amos\notificationmanager\record\NotifyAuditRecord, lispa\amos\notificationmanager\record\NotifyRecord, lispa\amos\organizzazioni\models\OrganizationsPlaces, lispa\amos\organizzazioni\models\Profilo, lispa\amos\organizzazioni\models\ProfiloLegalForm, lispa\amos\organizzazioni\models\ProfiloTypesPmi, lispa\amos\organizzazioni\models\ProfiloUserMm, lispa\amos\organizzazioni\models\base\OrganizationsPlaces, lispa\amos\organizzazioni\models\base\Profilo, lispa\amos\organizzazioni\models\base\ProfiloLegalForm, lispa\amos\organizzazioni\models\base\ProfiloTypesPmi, lispa\amos\organizzazioni\models\base\ProfiloUserMm, lispa\amos\organizzazioni\models\search\ProfiloSearch, lispa\amos\partnershipprofiles\models\DevelopmentStage, lispa\amos\partnershipprofiles\models\ExpressionsOfInterest, lispa\amos\partnershipprofiles\models\IntellectualProperty, lispa\amos\partnershipprofiles\models\PartnershipProfiles, lispa\amos\partnershipprofiles\models\PartnershipProfilesCountriesMm, lispa\amos\partnershipprofiles\models\PartnershipProfilesType, lispa\amos\partnershipprofiles\models\PartnershipProfilesTypesMm, lispa\amos\partnershipprofiles\models\WorkLanguage, lispa\amos\partnershipprofiles\models\base\DevelopmentStage, lispa\amos\partnershipprofiles\models\base\ExpressionsOfInterest, lispa\amos\partnershipprofiles\models\base\IntellectualProperty, lispa\amos\partnershipprofiles\models\base\PartnershipProfiles, lispa\amos\partnershipprofiles\models\base\PartnershipProfilesCountriesMm, lispa\amos\partnershipprofiles\models\base\PartnershipProfilesType, lispa\amos\partnershipprofiles\models\base\PartnershipProfilesTypesMm, lispa\amos\partnershipprofiles\models\base\WorkLanguage, lispa\amos\partnershipprofiles\models\search\DevelopmentStageSearch, lispa\amos\partnershipprofiles\models\search\ExpressionsOfInterestSearch, lispa\amos\partnershipprofiles\models\search\IntellectualPropertySearch, lispa\amos\partnershipprofiles\models\search\PartnershipProfilesSearch, lispa\amos\partnershipprofiles\models\search\PartnershipProfilesTypeSearch, lispa\amos\partnershipprofiles\models\search\WorkLanguageSearch, lispa\amos\projectmanagement\models\MembershipType, lispa\amos\projectmanagement\models\Projects, lispa\amos\projectmanagement\models\ProjectsActivities, lispa\amos\projectmanagement\models\ProjectsActivitiesOrganizationMm, lispa\amos\projectmanagement\models\ProjectsActivitiesProjectsMm, lispa\amos\projectmanagement\models\ProjectsAtModifyRequestMm, lispa\amos\projectmanagement\models\ProjectsCustomSpendingVoices, lispa\amos\projectmanagement\models\ProjectsJoinedOrganizationsMm, lispa\amos\projectmanagement\models\ProjectsMeasure, lispa\amos\projectmanagement\models\ProjectsModifyRequest, lispa\amos\projectmanagement\models\ProjectsOrganizationMm, lispa\amos\projectmanagement\models\ProjectsProgressCosts, lispa\amos\projectmanagement\models\ProjectsProgressCostsType, lispa\amos\projectmanagement\models\ProjectsProgressDetectionPeriod, lispa\amos\projectmanagement\models\ProjectsProgressDetectionType, lispa\amos\projectmanagement\models\ProjectsProgressStatements, lispa\amos\projectmanagement\models\ProjectsProgressStatementsType, lispa\amos\projectmanagement\models\ProjectsProjectsMeasureMm, lispa\amos\projectmanagement\models\ProjectsProjectsStatesMm, lispa\amos\projectmanagement\models\ProjectsRoles, lispa\amos\projectmanagement\models\ProjectsSpendingVoices, lispa\amos\projectmanagement\models\ProjectsStates, lispa\amos\projectmanagement\models\ProjectsTaskStatuses, lispa\amos\projectmanagement\models\ProjectsTasks, lispa\amos\projectmanagement\models\ProjectsTasksCosts, lispa\amos\projectmanagement\models\ProjectsTasksJoinedOrganizationsMm, lispa\amos\projectmanagement\models\ProjectsTasksOrganizationMm, lispa\amos\projectmanagement\models\ProjectsTasksProjectsActivitiesMm, lispa\amos\projectmanagement\models\ProjectsTasksProjectsTaskStatusesMm, lispa\amos\projectmanagement\models\ProjectsTasksTasksMm, lispa\amos\projectmanagement\models\ProjectsUserMm, lispa\amos\projectmanagement\models\base\MembershipType, lispa\amos\projectmanagement\models\base\Projects, lispa\amos\projectmanagement\models\base\ProjectsActivities, lispa\amos\projectmanagement\models\base\ProjectsActivitiesOrganizationMm, lispa\amos\projectmanagement\models\base\ProjectsActivitiesProjectsMm, lispa\amos\projectmanagement\models\base\ProjectsAtModifyRequestMm, lispa\amos\projectmanagement\models\base\ProjectsCustomSpendingVoices, lispa\amos\projectmanagement\models\base\ProjectsJoinedOrganizationsMm, lispa\amos\projectmanagement\models\base\ProjectsMeasure, lispa\amos\projectmanagement\models\base\ProjectsModifyRequest, lispa\amos\projectmanagement\models\base\ProjectsOrganizationMm, lispa\amos\projectmanagement\models\base\ProjectsProgressCosts, lispa\amos\projectmanagement\models\base\ProjectsProgressCostsType, lispa\amos\projectmanagement\models\base\ProjectsProgressDetectionPeriod, lispa\amos\projectmanagement\models\base\ProjectsProgressDetectionType, lispa\amos\projectmanagement\models\base\ProjectsProgressStatements, lispa\amos\projectmanagement\models\base\ProjectsProgressStatementsType, lispa\amos\projectmanagement\models\base\ProjectsProjectsMeasureMm, lispa\amos\projectmanagement\models\base\ProjectsProjectsStatesMm, lispa\amos\projectmanagement\models\base\ProjectsRoles, lispa\amos\projectmanagement\models\base\ProjectsSpendingVoices, lispa\amos\projectmanagement\models\base\ProjectsStates, lispa\amos\projectmanagement\models\base\ProjectsTaskStatuses, lispa\amos\projectmanagement\models\base\ProjectsTasks, lispa\amos\projectmanagement\models\base\ProjectsTasksCosts, lispa\amos\projectmanagement\models\base\ProjectsTasksJoinedOrganizationsMm, lispa\amos\projectmanagement\models\base\ProjectsTasksOrganizationMm, lispa\amos\projectmanagement\models\base\ProjectsTasksProjectsActivitiesMm, lispa\amos\projectmanagement\models\base\ProjectsTasksProjectsTaskStatusesMm, lispa\amos\projectmanagement\models\base\ProjectsTasksTasksMm, lispa\amos\projectmanagement\models\base\ProjectsUserMm, lispa\amos\projectmanagement\models\search\ProjectsActivitiesSearch, lispa\amos\projectmanagement\models\search\ProjectsCustomCostItemsSearch, lispa\amos\projectmanagement\models\search\ProjectsMeasureSearch, lispa\amos\projectmanagement\models\search\ProjectsModifyRequestSearch, lispa\amos\projectmanagement\models\search\ProjectsProgressCostsSearch, lispa\amos\projectmanagement\models\search\ProjectsProgressDetectionPeriodSearch, lispa\amos\projectmanagement\models\search\ProjectsProgressStatementsSearch, lispa\amos\projectmanagement\models\search\ProjectsSearch, lispa\amos\projectmanagement\models\search\ProjectsStatesSearch, lispa\amos\projectmanagement\models\search\ProjectsTaskStatusesSearch, lispa\amos\projectmanagement\models\search\ProjectsTasksSearch, lispa\amos\report\models\Report, lispa\amos\report\models\ReportType, lispa\amos\report\models\base\Report, lispa\amos\report\models\base\ReportType, lispa\amos\report\models\search\ReportSearch, lispa\amos\risultati\models\BisognoPerSviluppoRisultati, lispa\amos\risultati\models\ProtezioneInnovazioneRisultati, lispa\amos\risultati\models\Risultati, lispa\amos\risultati\models\RisultatiBisognoPerSviluppoRisultatiMm, lispa\amos\risultati\models\RisultatiInnovazionePrevalente, lispa\amos\risultati\models\RisultatiProtezioneInnovazioneRisultatiMm, lispa\amos\risultati\models\RisultatiStadioSviluppoRisultatiMm, lispa\amos\risultati\models\RisultatiTecnologieRisultatiMm, lispa\amos\risultati\models\StadioSviluppoRisultati, lispa\amos\risultati\models\TecnologieRisultati, lispa\amos\risultati\models\base\BisognoPerSviluppoRisultati, lispa\amos\risultati\models\base\ProtezioneInnovazioneRisultati, lispa\amos\risultati\models\base\Risultati, lispa\amos\risultati\models\base\RisultatiBisognoPerSviluppoRisultatiMm, lispa\amos\risultati\models\base\RisultatiInnovazionePrevalente, lispa\amos\risultati\models\base\RisultatiProtezioneInnovazioneRisultatiMm, lispa\amos\risultati\models\base\RisultatiStadioSviluppoRisultatiMm, lispa\amos\risultati\models\base\RisultatiTecnologieRisultatiMm, lispa\amos\risultati\models\base\StadioSviluppoRisultati, lispa\amos\risultati\models\base\TecnologieRisultati, lispa\amos\risultati\models\search\BisognoPerSviluppoRisultatiSearch, lispa\amos\risultati\models\search\ProtezioneInnovazioneRisultatiSearch, lispa\amos\risultati\models\search\RisultatiSearch, lispa\amos\risultati\models\search\StadioSviluppoRisultatiSearch, lispa\amos\risultati\models\search\TecnologieRisultatiSearch, lispa\amos\seo\models\SeoData, lispa\amos\seo\models\base\SeoData, lispa\amos\slideshow\models\Slideshow, lispa\amos\slideshow\models\SlideshowPage, lispa\amos\slideshow\models\SlideshowRoute, lispa\amos\slideshow\models\SlideshowUserflag, lispa\amos\slideshow\models\base\Slideshow, lispa\amos\slideshow\models\base\SlideshowPage, lispa\amos\slideshow\models\base\SlideshowRoute, lispa\amos\slideshow\models\base\SlideshowUserflag, lispa\amos\slideshow\models\search\SlideshowPageSearch, lispa\amos\slideshow\models\search\SlideshowRouteSearch, lispa\amos\slideshow\models\search\SlideshowSearch, lispa\amos\socialauth\models\SocialAuthServices, lispa\amos\socialauth\models\SocialAuthUsers, lispa\amos\sondaggi\models\Sondaggi, lispa\amos\sondaggi\models\SondaggiDomande, lispa\amos\sondaggi\models\SondaggiDomandeCondizionate, lispa\amos\sondaggi\models\SondaggiDomandePagine, lispa\amos\sondaggi\models\SondaggiDomandeTipologie, lispa\amos\sondaggi\models\SondaggiPubblicazione, lispa\amos\sondaggi\models\SondaggiRisposte, lispa\amos\sondaggi\models\SondaggiRispostePredefinite, lispa\amos\sondaggi\models\SondaggiRisposteSessioni, lispa\amos\sondaggi\models\SondaggiStato, lispa\amos\sondaggi\models\base\Sondaggi, lispa\amos\sondaggi\models\base\SondaggiDomande, lispa\amos\sondaggi\models\base\SondaggiDomandeCondizionate, lispa\amos\sondaggi\models\base\SondaggiDomandePagine, lispa\amos\sondaggi\models\base\SondaggiDomandeTipologie, lispa\amos\sondaggi\models\base\SondaggiPubblicazione, lispa\amos\sondaggi\models\base\SondaggiRisposte, lispa\amos\sondaggi\models\base\SondaggiRispostePredefinite, lispa\amos\sondaggi\models\base\SondaggiRisposteSessioni, lispa\amos\sondaggi\models\base\SondaggiStato, lispa\amos\sondaggi\models\search\SondaggiDomandePagineSearch, lispa\amos\sondaggi\models\search\SondaggiDomandeSearch, lispa\amos\sondaggi\models\search\SondaggiDomandeTipologieSearch, lispa\amos\sondaggi\models\search\SondaggiRispostePredefiniteSearch, lispa\amos\sondaggi\models\search\SondaggiRisposteSearch, lispa\amos\sondaggi\models\search\SondaggiRisposteSessioniSearch, lispa\amos\sondaggi\models\search\SondaggiSearch, lispa\amos\tag\models\EntitysTagsMm, lispa\amos\tag\models\TagModelsAuthItemsMm, lispa\amos\tag\models\base\BaseEntitysTagsMm, lispa\amos\tag\models\base\TagModelsAuthItemsMm, lispa\amos\translation\bootstrap\EventActiveRecordBootstrap, lispa\amos\translation\models\LanguageTranslateUserFields, lispa\amos\translation\models\TranslationConf, lispa\amos\translation\models\TranslationUserLanguageMm, lispa\amos\translation\models\TranslationUserPreference, lispa\amos\upload\models\FilemanagerMediafile, lispa\amos\videoconference\models\Videoconf, lispa\amos\videoconference\models\VideoconfSearch, lispa\amos\videoconference\models\VideoconfUsersMm, lispa\amos\videoconference\models\base\Videoconf, lispa\amos\videoconference\models\base\VideoconfUsersMm, lispa\amos\workflow\models\WorkflowTransitionsLog, lispa\amos\workflow\models\base\WorkflowTransitionsLog, pendalf89\filemanager\models\Mediafile, pendalf89\filemanager\models\MediafileSearch, pendalf89\filemanager\models\Owners, pendalf89\filemanager\models\Tag, yii\db\ActiveRecord, yii\db\BaseActiveRecord
Available since version2.0
Source Code https://github.com/yiisoft/yii2/blob/master/framework/db/ActiveRecordInterface.php

ActiveRecordInterface

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attributes() Returns the list of all attribute names of the record. yii\db\ActiveRecordInterface
delete() Deletes the record from the database. yii\db\ActiveRecordInterface
deleteAll() Deletes records using the provided conditions. yii\db\ActiveRecordInterface
equals() Returns a value indicating whether the given active record is the same as the current one. yii\db\ActiveRecordInterface
find() Creates an yii\db\ActiveQueryInterface instance for query purpose. yii\db\ActiveRecordInterface
findAll() Returns a list of active record models that match the specified primary key value(s) or a set of column values. yii\db\ActiveRecordInterface
findOne() Returns a single active record model instance by a primary key or an array of column values. yii\db\ActiveRecordInterface
getAttribute() Returns the named attribute value. yii\db\ActiveRecordInterface
getDb() Returns the connection used by this AR class. yii\db\ActiveRecordInterface
getIsNewRecord() Returns a value indicating whether the current record is new (not saved in the database). yii\db\ActiveRecordInterface
getOldPrimaryKey() Returns the old primary key value(s). yii\db\ActiveRecordInterface
getPrimaryKey() Returns the primary key value(s). yii\db\ActiveRecordInterface
getRelation() Returns the relation object with the specified name. yii\db\ActiveRecordInterface
hasAttribute() Returns a value indicating whether the record has an attribute with the specified name. yii\db\ActiveRecordInterface
insert() Inserts the record into the database using the attribute values of this record. yii\db\ActiveRecordInterface
isPrimaryKey() Returns a value indicating whether the given set of attributes represents the primary key for this model yii\db\ActiveRecordInterface
link() Establishes the relationship between two records. yii\db\ActiveRecordInterface
populateRelation() Populates the named relation with the related records. yii\db\ActiveRecordInterface
primaryKey() Returns the primary key name(s) for this AR class. yii\db\ActiveRecordInterface
save() Saves the current record. yii\db\ActiveRecordInterface
setAttribute() Sets the named attribute value. yii\db\ActiveRecordInterface
unlink() Destroys the relationship between two records. yii\db\ActiveRecordInterface
update() Saves the changes to this active record into the database. yii\db\ActiveRecordInterface
updateAll() Updates records using the provided attribute values and conditions. yii\db\ActiveRecordInterface

Method Details

attributes() public abstract method

Returns the list of all attribute names of the record.

public abstract array attributes ( )
return array

List of attribute names.

delete() public abstract method

Deletes the record from the database.

public abstract integer|boolean delete ( )
return integer|boolean

The number of rows deleted, or false if the deletion is unsuccessful for some reason. Note that it is possible that the number of rows deleted is 0, even though the deletion execution is successful.

deleteAll() public abstract static method

Deletes records using the provided conditions.

WARNING: If you do not specify any condition, this method will delete ALL rows in the table.

For example, to delete all customers whose status is 3:

Customer::deleteAll([status = 3]);
public abstract static integer deleteAll ( $condition null )
$condition array

The condition that matches the records that should get deleted. Please refer to yii\db\QueryInterface::where() on how to specify this parameter. An empty condition will match all records.

return integer

The number of rows deleted

equals() public abstract method

Returns a value indicating whether the given active record is the same as the current one.

Two new records are considered to be not equal.

public abstract boolean equals ( $record )
$record static

Record to compare to

return boolean

Whether the two active records refer to the same row in the same database table.

find() public abstract static method

Creates an yii\db\ActiveQueryInterface instance for query purpose.

The returned yii\db\ActiveQueryInterface instance can be further customized by calling methods defined in yii\db\ActiveQueryInterface before one() or all() is called to return populated ActiveRecord instances. For example,

// find the customer whose ID is 1
$customer = Customer::find()->where(['id' => 1])->one();

// find all active customers and order them by their age:
$customers = Customer::find()
    ->where(['status' => 1])
    ->orderBy('age')
    ->all();

This method is also called by yii\db\BaseActiveRecord::hasOne() and yii\db\BaseActiveRecord::hasMany() to create a relational query.

You may override this method to return a customized query. For example,

class Customer extends ActiveRecord
{
    public static function find()
    {
        // use CustomerQuery instead of the default ActiveQuery
        return new CustomerQuery(get_called_class());
    }
}

The following code shows how to apply a default condition for all queries:

class Customer extends ActiveRecord
{
    public static function find()
    {
        return parent::find()->where(['deleted' => false]);
    }
}

// Use andWhere()/orWhere() to apply the default condition
// SELECT FROM customer WHERE `deleted`=:deleted AND age>30
$customers = Customer::find()->andWhere('age>30')->all();

// Use where() to ignore the default condition
// SELECT FROM customer WHERE age>30
$customers = Customer::find()->where('age>30')->all();
public abstract static yii\db\ActiveQueryInterface find ( )
return yii\db\ActiveQueryInterface

The newly created yii\db\ActiveQueryInterface instance.

findAll() public abstract static method

Returns a list of active record models that match the specified primary key value(s) or a set of column values.

The method accepts:

  • a scalar value (integer or string): query by a single primary key value and return an array containing the corresponding record (or an empty array if not found).
  • a non-associative array: query by a list of primary key values and return the corresponding records (or an empty array if none was found). Note that an empty condition will result in an empty result as it will be interpreted as a search for primary keys and not an empty WHERE condition.
  • an associative array of name-value pairs: query by a set of attribute values and return an array of records matching all of them (or an empty array if none was found). Note that ['id' => 1, 2] is treated as a non-associative array.

This method will automatically call the all() method and return an array of ActiveRecord instances.

Note: As this is a short-hand method only, using more complex conditions, like ['!=', 'id', 1] will not work. If you need to specify more complex conditions, use find() in combination with where() instead.

See the following code for usage examples:

// find the customers whose primary key value is 10
$customers = Customer::findAll(10);

// the above code is equivalent to:
$customers = Customer::find()->where(['id' => 10])->all();

// find the customers whose primary key value is 10, 11 or 12.
$customers = Customer::findAll([10, 11, 12]);

// the above code is equivalent to:
$customers = Customer::find()->where(['id' => [10, 11, 12]])->all();

// find customers whose age is 30 and whose status is 1
$customers = Customer::findAll(['age' => 30, 'status' => 1]);

// the above code is equivalent to:
$customers = Customer::find()->where(['age' => 30, 'status' => 1])->all();
public abstract static array findAll ( $condition )
$condition mixed

Primary key value or a set of column values

return array

An array of ActiveRecord instance, or an empty array if nothing matches.

findOne() public abstract static method

Returns a single active record model instance by a primary key or an array of column values.

The method accepts:

  • a scalar value (integer or string): query by a single primary key value and return the corresponding record (or null if not found).
  • a non-associative array: query by a list of primary key values and return the first record (or null if not found).
  • an associative array of name-value pairs: query by a set of attribute values and return a single record matching all of them (or null if not found). Note that ['id' => 1, 2] is treated as a non-associative array.

That this method will automatically call the one() method and return an ActiveRecord instance.

Note: As this is a short-hand method only, using more complex conditions, like ['!=', 'id', 1] will not work. If you need to specify more complex conditions, use find() in combination with where() instead.

See the following code for usage examples:

// find a single customer whose primary key value is 10
$customer = Customer::findOne(10);

// the above code is equivalent to:
$customer = Customer::find()->where(['id' => 10])->one();

// find the customers whose primary key value is 10, 11 or 12.
$customers = Customer::findOne([10, 11, 12]);

// the above code is equivalent to:
$customers = Customer::find()->where(['id' => [10, 11, 12]])->one();

// find the first customer whose age is 30 and whose status is 1
$customer = Customer::findOne(['age' => 30, 'status' => 1]);

// the above code is equivalent to:
$customer = Customer::find()->where(['age' => 30, 'status' => 1])->one();
public abstract static static findOne ( $condition )
$condition mixed

Primary key value or a set of column values

return static

ActiveRecord instance matching the condition, or null if nothing matches.

getAttribute() public abstract method

Returns the named attribute value.

If this record is the result of a query and the attribute is not loaded, null will be returned.

See also hasAttribute().

public abstract mixed getAttribute ( $name )
$name string

The attribute name

return mixed

The attribute value. null if the attribute is not set or does not exist.

getDb() public abstract static method

Returns the connection used by this AR class.

public abstract static mixed getDb ( )
return mixed

The database connection used by this AR class.

getIsNewRecord() public abstract method

Returns a value indicating whether the current record is new (not saved in the database).

public abstract boolean getIsNewRecord ( )
return boolean

Whether the record is new and should be inserted when calling save().

getOldPrimaryKey() public abstract method

Returns the old primary key value(s).

This refers to the primary key value that is populated into the record after executing a find method (e.g. find(), findOne()). The value remains unchanged even if the primary key attribute is manually assigned with a different value.

public abstract mixed getOldPrimaryKey ( $asArray false )
$asArray boolean

Whether to return the primary key value as an array. If true, the return value will be an array with column name as key and column value as value. If this is false (default), a scalar value will be returned for non-composite primary key.

return mixed

The old primary key value. An array (column name => column value) is returned if the primary key is composite or $asArray is true. A string is returned otherwise (null will be returned if the key value is null).

getPrimaryKey() public abstract method

Returns the primary key value(s).

public abstract mixed getPrimaryKey ( $asArray false )
$asArray boolean

Whether to return the primary key value as an array. If true, the return value will be an array with attribute names as keys and attribute values as values. Note that for composite primary keys, an array will always be returned regardless of this parameter value.

return mixed

The primary key value. An array (attribute name => attribute value) is returned if the primary key is composite or $asArray is true. A string is returned otherwise (null will be returned if the key value is null).

getRelation() public abstract method

Returns the relation object with the specified name.

A relation is defined by a getter method which returns an object implementing the yii\db\ActiveQueryInterface (normally this would be a relational yii\db\ActiveQuery object). It can be declared in either the ActiveRecord class itself or one of its behaviors.

public abstract yii\db\ActiveQueryInterface getRelation ( $name, $throwException true )
$name string

The relation name, e.g. orders for a relation defined via getOrders() method (case-sensitive).

$throwException boolean

Whether to throw exception if the relation does not exist.

return yii\db\ActiveQueryInterface

The relational query object

hasAttribute() public abstract method

Returns a value indicating whether the record has an attribute with the specified name.

public abstract boolean hasAttribute ( $name )
$name string

The name of the attribute

return boolean

Whether the record has an attribute with the specified name.

insert() public abstract method

Inserts the record into the database using the attribute values of this record.

Usage example:

$customer = new Customer;
$customer->name = $name;
$customer->email = $email;
$customer->insert();
public abstract boolean insert ( $runValidation true, $attributes null )
$runValidation boolean

Whether to perform validation (calling validate()) before saving the record. Defaults to true. If the validation fails, the record will not be saved to the database and this method will return false.

$attributes array

List of attributes that need to be saved. Defaults to null, meaning all attributes that are loaded from DB will be saved.

return boolean

Whether the attributes are valid and the record is inserted successfully.

isPrimaryKey() public abstract static method

Returns a value indicating whether the given set of attributes represents the primary key for this model

public abstract static boolean isPrimaryKey ( $keys )
$keys array

The set of attributes to check

return boolean

Whether the given set of attributes represents the primary key for this model

link() public abstract method

Establishes the relationship between two records.

The relationship is established by setting the foreign key value(s) in one record to be the corresponding primary key value(s) in the other record. The record with the foreign key will be saved into database without performing validation.

If the relationship involves a junction table, a new row will be inserted into the junction table which contains the primary key values from both records.

This method requires that the primary key value is not null.

public abstract void link ( $name, $model, $extraColumns = [] )
$name string

The case sensitive name of the relationship, e.g. orders for a relation defined via getOrders() method.

$model static

The record to be linked with the current one.

$extraColumns array

Additional column values to be saved into the junction table. This parameter is only meaningful for a relationship involving a junction table (i.e., a relation set with yii\db\ActiveQueryInterface::via()).

populateRelation() public abstract method (available since version 2.0.8)

Populates the named relation with the related records.

Note that this method does not check if the relation exists or not.

public abstract void populateRelation ( $name, $records )
$name string

The relation name, e.g. orders for a relation defined via getOrders() method (case-sensitive).

$records yii\db\ActiveRecordInterface|array|null

The related records to be populated into the relation.

primaryKey() public abstract static method

Returns the primary key name(s) for this AR class.

Note that an array should be returned even when the record only has a single primary key.

For the primary key value see getPrimaryKey() instead.

public abstract static string[] primaryKey ( )
return string[]

The primary key name(s) for this AR class.

save() public abstract method

Saves the current record.

This method will call insert() when isNewRecord is true, or update() when isNewRecord is false.

For example, to save a customer record:

$customer = new Customer; // or $customer = Customer::findOne($id);
$customer->name = $name;
$customer->email = $email;
$customer->save();
public abstract boolean save ( $runValidation true, $attributeNames null )
$runValidation boolean

Whether to perform validation (calling validate()) before saving the record. Defaults to true. If the validation fails, the record will not be saved to the database and this method will return false.

$attributeNames array

List of attribute names that need to be saved. Defaults to null, meaning all attributes that are loaded from DB will be saved.

return boolean

Whether the saving succeeded (i.e. no validation errors occurred).

setAttribute() public abstract method

Sets the named attribute value.

See also hasAttribute().

public abstract void setAttribute ( $name, $value )
$name string

The attribute name.

$value mixed

The attribute value.

unlink() public abstract method

Destroys the relationship between two records.

The record with the foreign key of the relationship will be deleted if $delete is true. Otherwise, the foreign key will be set null and the record will be saved without validation.

public abstract void unlink ( $name, $model, $delete false )
$name string

The case sensitive name of the relationship, e.g. orders for a relation defined via getOrders() method.

$model static

The model to be unlinked from the current one.

$delete boolean

Whether to delete the model that contains the foreign key. If false, the model's foreign key will be set null and saved. If true, the model containing the foreign key will be deleted.

update() public abstract method

Saves the changes to this active record into the database.

Usage example:

$customer = Customer::findOne($id);
$customer->name = $name;
$customer->email = $email;
$customer->update();
public abstract integer|boolean update ( $runValidation true, $attributeNames null )
$runValidation boolean

Whether to perform validation (calling validate()) before saving the record. Defaults to true. If the validation fails, the record will not be saved to the database and this method will return false.

$attributeNames array

List of attributes that need to be saved. Defaults to null, meaning all attributes that are loaded from DB will be saved.

return integer|boolean

The number of rows affected, or false if validation fails or updating process is stopped for other reasons. Note that it is possible that the number of rows affected is 0, even though the update execution is successful.

updateAll() public abstract static method

Updates records using the provided attribute values and conditions.

For example, to change the status to be 1 for all customers whose status is 2:

Customer::updateAll(['status' => 1], ['status' => '2']);
public abstract static integer updateAll ( $attributes, $condition null )
$attributes array

Attribute values (name-value pairs) to be saved for the record. Unlike update() these are not going to be validated.

$condition array

The condition that matches the records that should get updated. Please refer to yii\db\QueryInterface::where() on how to specify this parameter. An empty condition will match all records.

return integer

The number of rows updated