public function setupPrimaryKey(Field $field)
    {
        if (!$this->primaryKey && $field->primaryKey) {
            $this->primaryKey = $field;
        }
    }
public function setupPrimaryKey(Field $field)
    {
        if (!$this->primaryKey && $field->primaryKey) {
            $this->primaryKey = $field;
        }
    }
public function setupPrimaryKey ( Field $ field ) { if ( ! $ this -> primaryKey && $ field -> primaryKey ) { $ this -> primaryKey = $ field ; } }
Set the primary key field of the model.

@param Field $field

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Set the primary key field of the model .