# Drop-Down isn't populated with the 'name' field when table name contains “companies”

**URL:** <https://discourse.cakephp.org/t/drop-down-isnt-populated-with-the-name-field-when-table-name-contains-companies/8505>\
**Category:** Need Help\
**Created:** [October 15, 2020, 9:13am UTC](https://discourse.cakephp.org/t/drop-down-isnt-populated-with-the-name-field-when-table-name-contains-companies/8505 "2020-10-15T09:13:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterVARGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/petervarga/32/1928_2.png) [@PeterVARGA](https://discourse.cakephp.org/u/PeterVARGA)\
**Post date:** [October 15, 2020, 9:13am UTC](https://discourse.cakephp.org/t/drop-down-isnt-populated-with-the-name-field-when-table-name-contains-companies/8505/1 "2020-10-15T09:13:42Z")

</div>

**I have this very strange issue I cannot explain:**

The table `drivers` has the `belongsTo` association to the table `transport_companies` connected by the field `drivers.transport_company_id`. Usually in the `edit`|`add` mode for the table `drivers` CakePHP generates a nice drop-down with the content of the `name` field.

**The issue:**

The drop-drown shows only the ids instead of the content of the `name` field as long the table has the word `companies` in it. When I rename the table to `transport_firms` | `transports` | `transport_units` or something else then the drop-down field is populated correctly. I do NOT change anything, I only bake all models each time I rename the table.

**My question:**

Is there any CakePHP restriction regarding the word `companies` in a tablename because the drop-down isn’t populated correctly?

---

<div class="post-metadata">

**Author:** ![PeterVARGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/petervarga/32/1928_2.png) [@PeterVARGA](https://discourse.cakephp.org/u/PeterVARGA)\
**Post date:** [October 23, 2020, 12:53pm UTC](https://discourse.cakephp.org/t/drop-down-isnt-populated-with-the-name-field-when-table-name-contains-companies/8505/2 "2020-10-23T12:53:34Z")

</div>

Yeah, Stackoverflow is the right place for CakePHP questions. Over and over surprised how many questions don’t have even one reply.

---

<div class="post-metadata">

**Author:** ![Zuluru](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/zuluru/32/1230_2.png) [@Zuluru](https://discourse.cakephp.org/u/Zuluru)\
**Post date:** [October 23, 2020, 2:36pm UTC](https://discourse.cakephp.org/t/drop-down-isnt-populated-with-the-name-field-when-table-name-contains-companies/8505/3 "2020-10-23T14:36:58Z")

</div>

I didn’t reply here, specifically because the StackOverflow copy of the question had responses.
