Quote:
Originally Posted by qualiteam
How does your Model class (the one that adds the field) look like?
|
Code:
<?php
// vim: set ts=4 sw=4 sts=4 et:
namespace XLite\Module\EBLIEB\GlasPak\Model;
class Product extends \XLite\Model\Product implements \XLite\Base\IDecorator
{
/**
* @Column (type="string", length=32)
*/
protected $PPCField;
/**
* Updates "Pieces per case" field.
*
* @param string $value New value
*
* @return void
*/
public function setPPCField($value)
{
$this->PPCField = $value;
}
/**
* Returns the value of "Pieces per case" field.
*
* @return string
*/
public function getPPCField()
{
return $this->PPCField;
}
}
http://devs.x-cart.com/en/basics/understanding_models.html - This doesn't seem to reference Not Null vs Null...
Edit:
Does Xlite follow the doctrine?
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html
Would this work to my PPCField set to null?
Code:
{
/**
* @Column (type="string", length=32, nullable=true)
*/
protected $PPCField;
__________________
Business License
https://glaspak.com
GoDaddy VPS - Apache with WHM
2GB ECC DDR3 1600MHz
2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz
15 MB proc cache
60 GB 10k RPM hdd
PHP 7.0.15
MariaDB 10.1.21 with InnoDB engine