Commit c7b5185b authored by Jonathan.Wage's avatar Jonathan.Wage

Initial entry of sandbox schema and data fixtures.

parent 90fd4229
---
Adult:
Adult_1:
name: Parent 1
Contact: Contact_1
\ No newline at end of file
---
Car:
Car_1:
name: Chevorlet Trailblazer
Car_2:
name: Chevorlet Blazer
Car_3:
name: Buick
\ No newline at end of file
---
Child:
Child_1:
name: Child 1
Adult: Adult_1
\ No newline at end of file
---
Contact:
Contact_1:
name: Jonathan H. Wage
Contact_3:
name: Daniel Adams
Contact_4:
name: Robert Adams
\ No newline at end of file
---
Contact:
Contact_1:
name: jonathan h. wage
User:
User_1:
username: jonwage
Contact: Contact_1
---
Dog:
Dog_1:
name: Sam
User: User_1
Dog_2:
name: Dixie
User: User_2
Dog_3:
name: Chief
User: User_3
\ No newline at end of file
---
SelfReference:
SelfReference_1:
User1: User_1
User2: User_2
name: Self Reference 1
SelfReference1: SelfReference_2
SelfReference2: SelfReference_3
SelfReference_2:
User1: User_2
User2: User_1
name: Self Reference 2
SelfReference1: SelfReference_1
SelfReference2: SelfReference_1
SelfReference_3:
User1: User_2
User2: User_1
name: Self Reference 3
SelfReference1: SelfReference_3
SelfReference2: SelfReference_3
\ No newline at end of file
---
User:
User_1:
username: jwage
hair_color: light brown
Contact: Contact_1
User_2:
username: dadams
hair_color: dark brown
Contact: Contact_3
User_3:
username: radams
hair_color: light brown
Contact: Contact_4
\ No newline at end of file
---
UserCar:
UserCar_1:
User: User_1
Car: Car_1
UserCar_2:
User: User_2
Car: Car_2
UserCar_3:
User: User_3
Car: Car_3
\ No newline at end of file
<?php
require_once('generated/BaseAdult.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Adult extends BaseAdult
{
}
\ No newline at end of file
<?php
require_once('generated/BaseCar.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Car extends BaseCar
{
}
\ No newline at end of file
<?php
require_once('generated/BaseChild.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Child extends BaseChild
{
}
\ No newline at end of file
<?php
require_once('generated/BaseDog.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Dog extends BaseDog
{
}
\ No newline at end of file
<?php
require_once('generated/BaseEntity.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Entity extends BaseEntity
{
}
\ No newline at end of file
<?php
require_once('generated/BaseGroup.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Group extends BaseGroup
{
}
\ No newline at end of file
<?php
require_once('generated/BaseSelfReference.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class SelfReference extends BaseSelfReference
{
}
\ No newline at end of file
<?php
require_once('generated/BaseUserCar.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class UserCar extends BaseUserCar
{
}
\ No newline at end of file
<?php
require_once('generated/BaseUserGroup.class.php');
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class UserGroup extends BaseUserGroup
{
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseAdult extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('adult');
$this->hasColumn('id', 'integer', 11, array('primary' => true,
'autoincrement' => true));
$this->hasColumn('name', 'string', 255);
$this->hasColumn('contact_id', 'integer', 11);
}
public function setUp()
{
$this->hasOne('Contact', array('local' => 'contact_id',
'foreign' => 'id'));
$this->hasMany('Child as Children', array('local' => 'id',
'foreign' => 'adult_id'));
}
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseCar extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('car');
$this->hasColumn('id', 'integer', 11, array('primary' => true,
'autoincrement' => true));
$this->hasColumn('name', 'string', 255);
}
public function setUp()
{
$this->hasMany('User as Users', array('refClass' => 'UserCar',
'local' => 'car_id',
'foreign' => 'user_id'));
}
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseChild extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('child');
$this->hasColumn('id', 'integer', 11, array('primary' => true,
'autoincrement' => true));
$this->hasColumn('name', 'string', 255);
$this->hasColumn('adult_id', 'integer', 11);
}
public function setUp()
{
$this->hasOne('Adult', array('local' => 'adult_id',
'foreign' => 'id'));
}
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseDog extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('dog');
$this->hasColumn('id', 'integer', 11, array('primary' => true,
'autoincrement' => true));
$this->hasColumn('name', 'string', 255);
$this->hasColumn('user_id', 'integer', 11);
}
public function setUp()
{
$this->hasOne('User', array('local' => 'user_id',
'foreign' => 'id'));
}
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseEntity extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('entity');
$this->hasColumn('id', 'integer', 11, array('primary' => true,
'autoincrement' => true));
}
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseGroup extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('group');
$this->hasColumn('id', 'integer', 4, array('notnull' => true,
'primary' => true,
'autoincrement' => true));
$this->hasColumn('name', 'string', 255);
}
public function setUp()
{
$this->hasMany('User as Users', array('refClass' => 'UserGroup',
'local' => 'group_id',
'foreign' => 'user_id'));
}
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseSelfReference extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('self_reference');
$this->hasColumn('id', 'integer', 11, array('primary' => true,
'autoincrement' => true));
$this->hasColumn('name', 'string', 255);
$this->hasColumn('user_id1', 'integer', 11);
$this->hasColumn('user_id2', 'integer', 11);
$this->hasColumn('parent_self_reference_id', 'integer', 11);
$this->hasColumn('parent_self_reference_id2', 'integer', 11);
}
public function setUp()
{
$this->hasOne('User as User1', array('local' => 'user_id1',
'foreign' => 'id'));
$this->hasOne('User as User2', array('local' => 'user_id2',
'foreign' => 'id'));
$this->hasOne('SelfReference as SelfReference1', array('local' => 'parent_self_reference_id',
'foreign' => 'id'));
$this->hasOne('SelfReference as SelfReference2', array('local' => 'parent_self_reference_id2',
'foreign' => 'id'));
$this->hasMany('SelfReference as SelfReferences1', array('local' => 'id',
'foreign' => 'parent_self_reference_id'));
$this->hasMany('SelfReference as SelfReferences2', array('local' => 'id',
'foreign' => 'parent_self_reference_id2'));
}
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseUserCar extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('user_car');
$this->hasColumn('user_id', 'integer', 11, array('primary' => true));
$this->hasColumn('car_id', 'integer', 11, array('primary' => true));
}
public function setUp()
{
$this->hasOne('User', array('local' => 'user_id',
'foreign' => 'id'));
$this->hasOne('Car', array('local' => 'car_id',
'foreign' => 'id'));
}
}
\ No newline at end of file
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract class BaseUserGroup extends Doctrine_Record
{
public function setTableDefinition()
{
$this->setTableName('user_group');
$this->hasColumn('user_id', 'integer', 4, array('primary' => true));
$this->hasColumn('group_id', 'integer', 4, array('primary' => true));
}
public function setUp()
{
$this->hasOne('User', array('local' => 'user_id',
'foreign' => 'id'));
$this->hasOne('Group', array('local' => 'group_id',
'foreign' => 'id'));
}
}
\ No newline at end of file
---
Adult:
fields:
id:
type: integer
size: 11
primary: true
autoincrement: true
name:
type: string
size: 255
contact_id:
type: integer
size: 11
relations:
Contact:
foreignType: one
\ No newline at end of file
---
Car:
columns:
id:
type: integer
length: 11
primary: true
autoincrement: true
name:
type: string
length: 255
relations:
Users:
class: User
refClass: UserCar
\ No newline at end of file
---
Child:
fields:
id:
type: integer
size: 11
primary: true
autoincrement: true
name:
type: string
size: 255
adult_id:
type: integer
size: 11
relations:
Adult:
foreignAlias: Children
\ No newline at end of file
---
Dog:
columns:
id:
type: integer
length: 11
primary: true
autoincrement: true
name:
type: string
length: 255
user_id:
type: integer
length: 11
relations:
User:
foreignType: one
\ No newline at end of file
---
Entity:
columns:
id:
type: integer
size: 11
primary: true
autoincrement: true
\ No newline at end of file
---
Group:
columns:
id:
notnull: true
primary: true
autoincrement: true
type: integer
length: 4
name: id
name:
type: string
length: 255
relations:
Users:
class: User
refClass: UserGroup
\ No newline at end of file
---
SelfReference:
fields:
id:
type: integer
size: 11
primary: true
autoincrement: true
name:
type: string
size: 255
user_id1:
type: integer
size: 11
user_id2:
type: integer
size: 11
parent_self_reference_id:
type: integer
size: 11
parent_self_reference_id2:
type: integer
size: 11
relations:
User1:
class: User
local: user_id1
foreignAlias: SelfReference1
User2:
class: User
local: user_id2
foreignAlias: SelfReference2
SelfReference1:
class: SelfReference
local: parent_self_reference_id
foreignAlias: SelfReferences1
SelfReference2:
class: SelfReference
local: parent_self_reference_id2
foreignAlias: SelfReferences2
\ No newline at end of file
---
UserCar:
columns:
user_id:
type: integer
length: 11
primary: true
car_id:
type: integer
length: 11
primary: true
relations:
User: -
Car: -
\ No newline at end of file
---
UserGroup:
columns:
user_id:
type: integer
length: 4
primary: true
group_id:
type: integer
length: 4
primary: true
relations:
User: -
Group: -
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment