Hi,

I dont even know how to ask that but i want to show what i need.

my schema.yml
category:
  id: ~
  title: { type: varchar(100), required: true, index: unique }

product:
  id:~
  category_id: { type: integer, foreignTable: category, foreignReference:
id, onDelete: cascade }
  name: { type: varchar(100), required: true, index: unique }

i want to retrieve all categories that have a least one product and i want
to show how many products each category.

thank you.

Celso

ps. sorry about my english i dont know if the question is understandable.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to