# Validating hasmany data in parent model

**URL:** <https://discourse.cakephp.org/t/validating-hasmany-data-in-parent-model/11199>\
**Category:** Need Help\
**Created:** [May 10, 2023, 2:15am UTC](https://discourse.cakephp.org/t/validating-hasmany-data-in-parent-model/11199 "2023-05-10T02:15:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasg](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@thomasg](https://discourse.cakephp.org/u/thomasg)\
**Post date:** [May 10, 2023, 2:15am UTC](https://discourse.cakephp.org/t/validating-hasmany-data-in-parent-model/11199/1 "2023-05-10T02:15:49Z")

</div>

Hi,

I was looking how to validate hasMany data in the parent model. Because I want to do validation based on a value only present in the parent entity. Is this possible?

Greets,  
Thomas
