micro/orm/OrmUtils.php 1 location
|
@@ 48-55 (lines=8) @@
|
| 45 |
|
return false; |
| 46 |
|
} |
| 47 |
|
|
| 48 |
|
public static function getFieldName($class,$member){ |
| 49 |
|
$ret=self::getAnnotationInfo($class, "#fieldNames"); |
| 50 |
|
if($ret===false) |
| 51 |
|
$ret=$member; |
| 52 |
|
else |
| 53 |
|
$ret=$ret[$member]; |
| 54 |
|
return $ret; |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
public static function getTableName($class){ |
| 58 |
|
return self::getModelMetadata($class)["#tableName"]; |
micro/orm/Reflexion.php 1 location
|
@@ 118-125 (lines=8) @@
|
| 115 |
|
return true; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
public static function getFieldName($class,$member){ |
| 119 |
|
$ret=self::getAnnotationMember($class, $member, "@column"); |
| 120 |
|
if($ret===false) |
| 121 |
|
$ret=$member; |
| 122 |
|
else |
| 123 |
|
$ret=$ret->name; |
| 124 |
|
return $ret; |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
public static function getTableName($class){ |
| 128 |
|
$ret=Reflexion::getAnnotationClass($class, "@table"); |