1 | <?php |
||
4 | trait OrmEntityAnalyzer |
||
5 | { |
||
6 | /** |
||
7 | * Include mapping related functionality |
||
8 | */ |
||
9 | use OrmMapping; |
||
10 | |||
11 | /** |
||
12 | * Get the name of table |
||
13 | * |
||
14 | * @param string $class The name of class |
||
15 | * |
||
16 | * @return string The name of table |
||
17 | * |
||
18 | * @throws OrmException |
||
19 | */ |
||
20 | 32 | private static function getTableName($class) |
|
28 | |||
29 | /** |
||
30 | * Retrieve the primary key value |
||
31 | * |
||
32 | * @param string $class The name of class where to retrieve the primary key value |
||
33 | * |
||
34 | * @return array Pair of column name and value of primary key |
||
35 | * |
||
36 | * @throws OrmException |
||
37 | */ |
||
38 | 16 | private static function getPrimaryKey($class, $object, $onlyValue = false) |
|
63 | |||
64 | /** |
||
65 | * Retrieve the name of column which represents the primary key |
||
66 | * |
||
67 | * @param string $class The name of class |
||
68 | * |
||
69 | * @return string The name of primary key column |
||
70 | * |
||
71 | * @throws OrmException |
||
72 | */ |
||
73 | 17 | private static function getPrimaryKeyCol($class) |
|
87 | } |
||
88 |