posted 11 years ago
ok, i have a Merchant entity that extend User entity
User entity
Merchant entity
and Merchant entity has a list of store entity
and that is the code that inserts Merchant entity
i logged the generated queries and i found out that it inserts User then Store and that is why it voilate the FK constraint because there is no merchant yet, how can i solve this ?