micro/orm/OrmUtils.php 1 location
|
@@ 42-49 (lines=8) @@
|
| 39 |
|
return false; |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public static function getFieldName($class,$member){ |
| 43 |
|
$ret=self::getAnnotationInfo($class, "#fieldNames"); |
| 44 |
|
if($ret===false) |
| 45 |
|
$ret=$member; |
| 46 |
|
else |
| 47 |
|
$ret=$ret[$member]; |
| 48 |
|
return $ret; |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
public static function getTableName($class){ |
| 52 |
|
return self::getModelMetadata($class)["#tableName"]; |
micro/orm/parser/Reflexion.php 1 location
|
@@ 135-142 (lines=8) @@
|
| 132 |
|
return true; |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
public static function getFieldName($class,$member){ |
| 136 |
|
$ret=self::getAnnotationMember($class, $member, "@column"); |
| 137 |
|
if($ret===false) |
| 138 |
|
$ret=$member; |
| 139 |
|
else |
| 140 |
|
$ret=$ret->name; |
| 141 |
|
return $ret; |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
public static function getTableName($class){ |
| 145 |
|
$ret=Reflexion::getAnnotationClass($class, "@table"); |