LeanMapper\DefaultMapper::getPrimaryKey PHP Method

getPrimaryKey() public method

*
public getPrimaryKey ( $table )
    public function getPrimaryKey($table)
    {
        return 'id';
    }

Usage Example

Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function getPrimaryKey($table)
 {
     if (isset($this->tables[$table][self::K_PRIMARY_KEY])) {
         return $this->tables[$table][self::K_PRIMARY_KEY];
     }
     return parent::getPrimaryKey($table);
 }
All Usage Examples Of LeanMapper\DefaultMapper::getPrimaryKey