Check if a record exists using ActiveRecord In Yii2, if you’d like to check if a record exists in a table, use the following code: [php] Customer::find()->where( [ ’email’ => ‘jeff@yii2x.com’ ] )->exists(); [/php] Read More →