# Table name with underscores & Undefined property & Unable to emit headers ....& etc

**URL:** <https://discourse.cakephp.org/t/table-name-with-underscores-undefined-property-unable-to-emit-headers-etc/10038>\
**Category:** Need Help\
**Created:** [December 29, 2021, 11:43am UTC](https://discourse.cakephp.org/t/table-name-with-underscores-undefined-property-unable-to-emit-headers-etc/10038 "2021-12-29T11:43:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [December 29, 2021, 2:54pm UTC](https://discourse.cakephp.org/t/table-name-with-underscores-undefined-property-unable-to-emit-headers-etc/10038/2 "2021-12-29T14:54:50Z")

</div>

Well I guess it gets confused because of the extra `s` at the end of `Types of Packagings` name.  
CakePHP uses inflection to determine singular from plural names.

The name of the table could be improved in that fact that you use `packaging_types` instead of `types_of_packaging`

If you still want to keep that old name try to remove the `s` at the end of `types_of_packagings`

Because for me the singluar should be `Type of packaging` and the plural `Types of packaging`

But `PackagingType` and `PackagingTypes` is a bit more clearer I would say 😉

---

_[View the full topic](https://discourse.cakephp.org/t/table-name-with-underscores-undefined-property-unable-to-emit-headers-etc/10038)._
