# Database nullable integer field has value 'NULL', cakephp displaying '0'

**URL:** <https://discourse.cakephp.org/t/database-nullable-integer-field-has-value-null-cakephp-displaying-0/10082>\
**Category:** Uncategorized\
**Created:** [January 16, 2022, 11:17am UTC](https://discourse.cakephp.org/t/database-nullable-integer-field-has-value-null-cakephp-displaying-0/10082 "2022-01-16T11:17:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jawfin](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Jawfin](https://discourse.cakephp.org/u/Jawfin)\
**Post date:** [January 16, 2022, 2:05pm UTC](https://discourse.cakephp.org/t/database-nullable-integer-field-has-value-null-cakephp-displaying-0/10082/2 "2022-01-16T14:05:44Z")

</div>

A few posts down on this forum you’ll find this discussion: -

> [@Empty string in database instead of NULL](https://discourse.cakephp.org/t/empty-string-in-database-instead-of-null/10039):
>
> If I enter a value from a field that is empty via a form, an entry with an empty string is stored in the database. Could it be NULL instead? Is there anything to set, or is it a PHP CAKE feature? Thank You

It would seem this is an ongoing explanation over many years.  
From what I understand, being that CakePHP is PHP language oriented, it makes sense - but please follow the thoughts there for clarity.

---

_[View the full topic](https://discourse.cakephp.org/t/database-nullable-integer-field-has-value-null-cakephp-displaying-0/10082)._
