Difference between #1 and #2 of
Using multiple models in an identity

Revision #2 has been created by samdark on Jan 29, 2019, 11:11:01 PM with the memo:

Fixed typo
« previous (#1) next (#3) »

Changes

Title unchanged

Using multiple models in an identity

Category unchanged

How-tos

Yii version unchanged

2.0

Tags changed

authentication,identity

Content changed

[...]
}
```

In the above we assume that our ids are like `customer-23` or `supplier-34`. When we need to get identity instance we split the id by `-` and getting both type and integer id for the model corresponding to that type.

Having identity we can tell Yii to use it via `confi
ng/main.php`:

```php
[
// ...
'components' => [
[...]
8 2
4 followers
Viewed: 35 505 times
Version: 2.0
Category: How-tos
Written by: samdark
Last updated by: Néstor Acevedo
Created on: Oct 7, 2018
Last updated: 2 years ago
Update Article

Revisions

View all history