Skip to content

Instantly share code, notes, and snippets.

@JustLikeIcarus
Created May 4, 2010 19:56
Show Gist options
  • Save JustLikeIcarus/389889 to your computer and use it in GitHub Desktop.
Save JustLikeIcarus/389889 to your computer and use it in GitHub Desktop.
<?php
/*
CREATE TABLE tickets (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
user_id INT NUT NULL,
project_id INT NOT NULL,
status_id INT NOT NULL,
created INT NOT NULL,
last_update INT NOT NULL
)
ENGINE=InnoDB
*/
class Model_Ticket extends ORM
{
protected $_has_many = array('comments' => array(), 'files' => array(), 'labels' => array('through' => 'ticket_labels'));
protected $_belongs_to = array('user' => array(), 'project' => array(), 'status' => array());
}
@JustLikeIcarus
Copy link
Author

Just kidding :) yeah I know it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment