| 1 | <?php |
||
| 10 | class Field extends \samson\activerecord\field |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Find additional field database record by Name. |
||
| 14 | * This is generic method that should be used in nested classes to find its |
||
| 15 | * records by some its primary key value. |
||
| 16 | * |
||
| 17 | * @param QueryInterface $query Query object instance |
||
| 18 | * @param string $name Additional field name |
||
| 19 | * @param self $return Variable to return found database record |
||
| 20 | * @return bool|null|self Field instance or null if 3rd parameter not passed |
||
| 21 | */ |
||
| 22 | public static function byName(QueryInterface $query, $name, self & $return = null) |
||
| 30 | } |
||
| 31 |