@@ 210-219 (lines=10) @@ | ||
207 | return $tableName; |
|
208 | } |
|
209 | ||
210 | protected function get($var, $tableName = null) |
|
211 | { |
|
212 | $tableName = $this->checkTableName($tableName); |
|
213 | ||
214 | if (!isset($this->dbRows[$tableName])) { |
|
215 | return; |
|
216 | } |
|
217 | ||
218 | return $this->dbRows[$tableName]->get($var); |
|
219 | } |
|
220 | ||
221 | protected function set($var, $value, $tableName = null) |
|
222 | { |
|
@@ 283-292 (lines=10) @@ | ||
280 | * |
|
281 | * @return AbstractTDBMObject|null |
|
282 | */ |
|
283 | protected function getRef($foreignKeyName, $tableName = null) |
|
284 | { |
|
285 | $tableName = $this->checkTableName($tableName); |
|
286 | ||
287 | if (!isset($this->dbRows[$tableName])) { |
|
288 | return; |
|
289 | } |
|
290 | ||
291 | return $this->dbRows[$tableName]->getRef($foreignKeyName); |
|
292 | } |
|
293 | ||
294 | /** |
|
295 | * Adds a many to many relationship to this bean. |