# Bake not generating 100% new model-files?

**URL:** https://discourse.cakephp.org/t/bake-not-generating-100-new-model-files/6265
**Category:** Uncategorized
**Created:** [June 15, 2019, 9:53am UTC](https://discourse.cakephp.org/t/bake-not-generating-100-new-model-files/6265 "2019-06-15T09:53:54Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![drtrppr](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/drtrppr/32/1763_2.png) [@drtrppr](https://discourse.cakephp.org/u/drtrppr)
#### Post date: [July 1, 2019, 10:23am UTC](https://discourse.cakephp.org/t/bake-not-generating-100-new-model-files/6265/3 "2019-07-01T10:23:11Z")

</div>

That’s interesting, I’ve bake never seen choosing another display field, always the ‘id’ (I’m using CakePHP 3.7). Maybe a convention I’m missing?

To test this behaviour, I use two tables, ‘compositions’ (with fields ‘id’, ‘composition’, ‘description’) and ‘items’ (with fields ‘id’, ‘item’, ‘composition\_id’, ‘description’).

Bake generates innitially a model ‘CompositionsTable’ with DisplayField ‘id’. I repeatedly changed it to ‘composition’, ‘description’ and ‘id’ etc., after every bake the DisplayField kept the value I set it manually to.

The list of ‘items’ keeps showing the at that moment intended value for composition as set in the DisplayField.

---

_[View the full topic](https://discourse.cakephp.org/t/bake-not-generating-100-new-model-files/6265)._
