Bouncy Melons 0.1
declarative style orm
IdField.php
Go to the documentation of this file.
1 <?php
2 
3 namespace bm;
4 
13 class IdField extends Field {
14  const DEFAULT_SQL_TYPE = "int(11)";
15  const JOIN_VIEW = 1;
16  const JOIN_TABLE = 0;
17 
18  public function getJoinTableName($list) {
19  if(!empty($this->getOption('jointype'))) {
20  if($this->getOption('jointype')== self::JOIN_VIEW) {
21  return $list->getViewName();
22  }
23  }
24  return $list->getTableName();
25  }
26 }
getJoinTableName($list)
Definition: IdField.php:18