@@ 61-68 (lines=8) @@ | ||
58 | ); |
|
59 | } |
|
60 | ||
61 | private function getTableName($entity) |
|
62 | { |
|
63 | if (is_object($entity)) { |
|
64 | $entity = get_class($entity); |
|
65 | } |
|
66 | ||
67 | return $this->doctrine->getEntityManagerForClass($entity)->getClassMetadata($entity)->getTableName(); |
|
68 | } |
|
69 | ||
70 | private function getColumnName($field, $entity) |
|
71 | { |
|
@@ 70-77 (lines=8) @@ | ||
67 | return $this->doctrine->getEntityManagerForClass($entity)->getClassMetadata($entity)->getTableName(); |
|
68 | } |
|
69 | ||
70 | private function getColumnName($field, $entity) |
|
71 | { |
|
72 | if (is_object($entity)) { |
|
73 | $entity = get_class($entity); |
|
74 | } |
|
75 | ||
76 | return $this->doctrine->getEntityManagerForClass($entity)->getClassMetadata($entity)->getColumnName($field); |
|
77 | } |
|
78 | } |
|
79 |