Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// SocietyBlogTopic
'aggregates' =>
array (
'Blog' =>
array (
'class' => 'SocietyBlog',
'key' => 'id',
'local' => 'blogid',
'foreign' => 'id',
'cardinality' => 'one',
'owner' => 'foreign',
),
'Topic' =>
array (
'class' => 'SocietyTopic',
'key' => 'id',
'local' => 'topicid',
'foreign' => 'id',
'cardinality' => 'one',
'owner' => 'foreign',
),
),
// SocietyTopic
'composites' =>
array (
'Attributes' =>
array (
'class' => 'SocietyTopicAttributes',
'local' => 'id',
'foreign' => 'resourceid',
'cardinality' => 'one',
'owner' => 'local',
),
'TopicBlogs' =>
array (
'class' => 'SocietyBlogTopic',
'local' => 'id',
'foreign' => 'topicid',
'cardinality' => 'many',
'owner' => 'local',
),
),
// SocietyBlog
'composites' =>
array (
'Attributes' =>
array (
'class' => 'SocietyBlogAttributes',
'local' => 'id',
'foreign' => 'resourceid',
'cardinality' => 'one',
'owner' => 'local',
),
'BlogTopics' =>
array (
'class' => 'SocietyBlogTopic',
'local' => 'id',
'foreign' => 'blogid',
'cardinality' => 'many',
'owner' => 'local',
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.