x default position value
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user