x default position value

This commit is contained in:
Manuel Raynaud
2014-02-08 10:35:20 +01:00
parent 25084219e7
commit a51c54db26
6 changed files with 26 additions and 14 deletions

View File

@@ -109,6 +109,7 @@ abstract class Product implements ActiveRecordInterface
/**
* The value for the position field.
* Note: this column has a database default value of: 0
* @var int
*/
protected $position;
@@ -364,6 +365,7 @@ abstract class Product implements ActiveRecordInterface
public function applyDefaultValues()
{
$this->visible = 0;
$this->position = 0;
$this->version = 0;
}
@@ -1028,6 +1030,10 @@ abstract class Product implements ActiveRecordInterface
return false;
}
if ($this->position !== 0) {
return false;
}
if ($this->version !== 0) {
return false;
}

View File

@@ -82,6 +82,7 @@ abstract class ProductVersion implements ActiveRecordInterface
/**
* The value for the position field.
* Note: this column has a database default value of: 0
* @var int
*/
protected $position;
@@ -145,6 +146,7 @@ abstract class ProductVersion implements ActiveRecordInterface
public function applyDefaultValues()
{
$this->visible = 0;
$this->position = 0;
$this->version = 0;
}
@@ -805,6 +807,10 @@ abstract class ProductVersion implements ActiveRecordInterface
return false;
}
if ($this->position !== 0) {
return false;
}
if ($this->version !== 0) {
return false;
}