Various bug fixes

This commit is contained in:
Dan Cryer 2013-07-30 02:55:29 +01:00
commit b47dfbd0b3
15 changed files with 82 additions and 43 deletions

View file

@ -42,6 +42,7 @@ class BuildBase extends Model
'started' => null,
'finished' => null,
'plugins' => null,
'committer_email' => null,
);
/**
@ -58,6 +59,7 @@ class BuildBase extends Model
'started' => 'getStarted',
'finished' => 'getFinished',
'plugins' => 'getPlugins',
'committer_email' => 'getCommitterEmail',
'Project' => 'getProject',
);
@ -75,6 +77,7 @@ class BuildBase extends Model
'started' => 'setStarted',
'finished' => 'setFinished',
'plugins' => 'setPlugins',
'committer_email' => 'setCommitterEmail',
'Project' => 'setProject',
);
@ -129,6 +132,11 @@ class BuildBase extends Model
'length' => '',
'nullable' => true,
),
'committer_email' => array(
'type' => 'varchar',
'length' => '512',
'nullable' => true,
),
);
/**
@ -299,6 +307,19 @@ class BuildBase extends Model
return $rtn;
}
/**
* Get the value of CommitterEmail / committer_email.
*
* @return string
*/
public function getCommitterEmail()
{
$rtn = $this->data['committer_email'];
return $rtn;
}
/**
* Set the value of Id / id.
*
@ -309,7 +330,7 @@ class BuildBase extends Model
{
$this->_validateNotNull('Id', $value);
$this->_validateInt('Id', $value);
if ($this->data['id'] === $value) {
if ($this->data['id'] == $value) {
return;
}
@ -328,7 +349,7 @@ class BuildBase extends Model
{
$this->_validateNotNull('ProjectId', $value);
$this->_validateInt('ProjectId', $value);
if ($this->data['project_id'] === $value) {
if ($this->data['project_id'] == $value) {
return;
}
@ -347,7 +368,7 @@ class BuildBase extends Model
{
$this->_validateNotNull('CommitId', $value);
$this->_validateString('CommitId', $value);
if ($this->data['commit_id'] === $value) {
if ($this->data['commit_id'] == $value) {
return;
}
@ -366,7 +387,7 @@ class BuildBase extends Model
{
$this->_validateNotNull('Status', $value);
$this->_validateInt('Status', $value);
if ($this->data['status'] === $value) {
if ($this->data['status'] == $value) {
return;
}
@ -384,7 +405,7 @@ class BuildBase extends Model
{
$this->_validateString('Log', $value);
if ($this->data['log'] === $value) {
if ($this->data['log'] == $value) {
return;
}
@ -403,7 +424,7 @@ class BuildBase extends Model
{
$this->_validateNotNull('Branch', $value);
$this->_validateString('Branch', $value);
if ($this->data['branch'] === $value) {
if ($this->data['branch'] == $value) {
return;
}
@ -421,7 +442,7 @@ class BuildBase extends Model
{
$this->_validateDate('Created', $value);
if ($this->data['created'] === $value) {
if ($this->data['created'] == $value) {
return;
}
@ -439,7 +460,7 @@ class BuildBase extends Model
{
$this->_validateDate('Started', $value);
if ($this->data['started'] === $value) {
if ($this->data['started'] == $value) {
return;
}
@ -457,7 +478,7 @@ class BuildBase extends Model
{
$this->_validateDate('Finished', $value);
if ($this->data['finished'] === $value) {
if ($this->data['finished'] == $value) {
return;
}
@ -475,7 +496,7 @@ class BuildBase extends Model
{
$this->_validateString('Plugins', $value);
if ($this->data['plugins'] === $value) {
if ($this->data['plugins'] == $value) {
return;
}
@ -484,6 +505,24 @@ class BuildBase extends Model
$this->_setModified('plugins');
}
/**
* Set the value of CommitterEmail / committer_email.
*
* @param $value string
*/
public function setCommitterEmail($value)
{
$this->_validateString('CommitterEmail', $value);
if ($this->data['committer_email'] == $value) {
return;
}
$this->data['committer_email'] = $value;
$this->_setModified('committer_email');
}
/**
* Get the Project model for this Build by Id.
*