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