View Single Post
  #4  
Old 01-10-2017, 11:57 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Module - Database Field Problem with Null

Quote:
Would this work to my PPCField set to null?
Code:
@Column (type="string", length=32, nullable=true)

Yes, this should work.

Also, if you need the opposite, you can it like this:
Code:
@Column (type="integer", options={ "unsigned": true, "default": 0 })
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote