# Table 'propertyName' field

**URL:** <https://discourse.cakephp.org/t/table-propertyname-field/10259>\
**Category:** Need Help\
**Created:** [March 30, 2022, 2:59am UTC](https://discourse.cakephp.org/t/table-propertyname-field/10259 "2022-03-30T02:59:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yousuo](https://avatars.discourse-cdn.com/v4/letter/y/898d66/32.png) [@yousuo](https://discourse.cakephp.org/u/yousuo)\
**Post date:** [March 30, 2022, 2:59am UTC](https://discourse.cakephp.org/t/table-propertyname-field/10259/1 "2022-03-30T02:59:55Z")

</div>

Hi,

On Cakephp 4.2, I can use `propertyName` to set my association-name. It doesn’t seem to work on the latest 4.3 and not in the [ORM-Table-document](https://api.cakephp.org/4.0/class-Cake.ORM.Table.html). but stated in [cake4 ORM document](https://book.cakephp.org/4/en/orm/associations.html#belongsto-associations)

In 4.3 entity, the associated name that works is `address` although I specify `Address` in the Modal-Table  
 ![property name](https://canada1.discourse-cdn.com/flex029/uploads/cakephp/original/2X/8/856480bed5cef97ac4643f6c432c58066c7269ea.png)

```auto
// In Modal-Table
        $this->belongsTo('Address', [
            'className' => 'Addresses',
            'propertyName' => 'Address',
            'foreignKey' => 'address_id',
        ]);

```

Is it still there or there is a replacement ?

---

<div class="post-metadata">

**Author:** ![yousuo](https://avatars.discourse-cdn.com/v4/letter/y/898d66/32.png) [@yousuo](https://discourse.cakephp.org/u/yousuo)\
**Post date:** [March 31, 2022, 9:51am UTC](https://discourse.cakephp.org/t/table-propertyname-field/10259/2 "2022-03-31T09:51:48Z")

</div>

Figured it out. I didn’t set the `Entity` file properly.

```auto
    // In Modal/Entity/xxx.php
    protected $_accessible = [
...
        // 'address' => true,
        'Address' => true,
...

]

```
