src/eXpansion/Bundle/LocalRecords/Model/Base/Record.php 1 location
|
@@ 1118-1124 (lines=7) @@
|
| 1115 |
|
* Defaults to TableMap::TYPE_PHPNAME. |
| 1116 |
|
* @return mixed Value of field. |
| 1117 |
|
*/ |
| 1118 |
|
public function getByName($name, $type = TableMap::TYPE_PHPNAME) |
| 1119 |
|
{ |
| 1120 |
|
$pos = RecordTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); |
| 1121 |
|
$field = $this->getByPosition($pos); |
| 1122 |
|
|
| 1123 |
|
return $field; |
| 1124 |
|
} |
| 1125 |
|
|
| 1126 |
|
/** |
| 1127 |
|
* Retrieves a field from the object by Position as specified in the xml schema. |
src/eXpansion/Framework/PlayersBundle/Model/Base/Player.php 1 location
|
@@ 1011-1017 (lines=7) @@
|
| 1008 |
|
* Defaults to TableMap::TYPE_PHPNAME. |
| 1009 |
|
* @return mixed Value of field. |
| 1010 |
|
*/ |
| 1011 |
|
public function getByName($name, $type = TableMap::TYPE_PHPNAME) |
| 1012 |
|
{ |
| 1013 |
|
$pos = PlayerTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM); |
| 1014 |
|
$field = $this->getByPosition($pos); |
| 1015 |
|
|
| 1016 |
|
return $field; |
| 1017 |
|
} |
| 1018 |
|
|
| 1019 |
|
/** |
| 1020 |
|
* Retrieves a field from the object by Position as specified in the xml schema. |