# Cakephp Model Relationship

**URL:** <https://discourse.cakephp.org/t/cakephp-model-relationship/951>\
**Category:** Uncategorized\
**Created:** [August 10, 2016, 5:19pm UTC](https://discourse.cakephp.org/t/cakephp-model-relationship/951 "2016-08-10T17:19:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clementcrownrise](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@clementcrownrise](https://discourse.cakephp.org/u/clementcrownrise)\
**Post date:** [August 10, 2016, 5:19pm UTC](https://discourse.cakephp.org/t/cakephp-model-relationship/951/1 "2016-08-10T17:19:07Z")

</div>

Please how can i get the information of a user, I have a blog in which a user hasMany Comment, in the comment model, i have a user\_id column, so now, I want to get the username of the user that commented.

How can I achieve this?

Your Help will be appreciated.
