Google Groups Home
Help | Sign in
Message from discussion Simple Inheritance
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Alex  
View profile
 More options 13 May, 23:17
From: Alex <outroa...@gmail.com>
Date: Tue, 13 May 2008 15:17:32 -0700 (PDT)
Local: Tues 13 May 2008 23:17
Subject: Simple Inheritance
What exactly is simple inheritance? With what I have below, it doesn't
create any addiotional tables. How will I be able to query only votes
for Items?

Thanks!

Vote:
  tableName: votes
  actAs:
    Timestampable:
      created:
        name: created_at
        type: timestamp
        format:Y-m-d H:i:s
      updated:
        disabled: true
  columns:
    id:
      unsigned: 0
      primary: true
      notnull: true
      autoincrement: true
      type: integer
    user_id:
      unsigned: 0
      primary: false
      notnull: false
      autoincrement: false
      type: integer

VoteItem:
  inheritance:
    extends: Vote
    type: simple

VoteComment:
  inheritance:
    extends: Vote
    type: simple


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google