hasMany(CustomerOrder::className(), ['customer_id' => '_id']); } /** * @inheritdoc * @return CustomerQuery */ public static function find() { return new CustomerQuery(get_called_class()); } }