micro/orm/OrmUtils.php 1 location
|
@@ 84-91 (lines=8) @@
|
| 81 |
|
return false; |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
public static function getFieldName($class,$member){ |
| 85 |
|
$ret=self::getAnnotationInfo($class, "#fieldNames"); |
| 86 |
|
if($ret===false) |
| 87 |
|
$ret=$member; |
| 88 |
|
else |
| 89 |
|
$ret=$ret[$member]; |
| 90 |
|
return $ret; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
public static function getTableName($class){ |
| 94 |
|
return self::getModelMetadata($class)["#tableName"]; |
micro/orm/parser/Reflexion.php 1 location
|
@@ 119-126 (lines=8) @@
|
| 116 |
|
return true; |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
public static function getFieldName($class,$member){ |
| 120 |
|
$ret=self::getAnnotationMember($class, $member, "@column"); |
| 121 |
|
if($ret===false) |
| 122 |
|
$ret=$member; |
| 123 |
|
else |
| 124 |
|
$ret=$ret->name; |
| 125 |
|
return $ret; |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
public static function getTableName($class){ |
| 129 |
|
$ret=Reflexion::getAnnotationClass($class, "@table"); |