findFor() public abstract method
Finds the related records for the specified primary record.
This method is invoked when a relation of an ActiveRecord is being accessed in a lazy fashion.
| public abstract mixed findFor ( $name, $model ) | ||
|---|---|---|
| $name | string |
The relation name |
| $model | yii\db\ActiveRecordInterface |
The primary model |
| return | mixed |
The related record(s) |
Please login to continue.