public function getPrimary() {
        foreach ($this->_fields as $key => $field) {
            if ($field->primary == true) {
                $this->_primary = $key;
                break;
            }
        }
    }
public function getPrimary() {
        foreach ($this->_fields as $key => $field) {
            if ($field->primary == true) {
                $this->_primary = $key;
                break;
            }
        }
    }
public function getPrimary ( ) { foreach ( $ this -> _fields as $ key => $ field ) { if ( $ field -> primary == true ) { $ this -> _primary = $ key ; break ; } } }
Get primary key name
@access public
@return void
@since 3.0
@package Gcs\Framework\Core\Orm\Entity
Get primary key name