Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
d2f41b75
Commit
d2f41b75
authored
Oct 15, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial entry.
parent
4f996de8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
91 additions
and
0 deletions
+91
-0
Contact.class.php
sandbox/models/Contact.class.php
+19
-0
User.class.php
sandbox/models/User.class.php
+10
-0
BaseContact.class.php
sandbox/models/generated/BaseContact.class.php
+21
-0
BaseUser.class.php
sandbox/models/generated/BaseUser.class.php
+22
-0
sandbox.db
sandbox/sandbox.db
+0
-0
contact.yml
sandbox/schema/contact.yml
+6
-0
user.yml
sandbox/schema/user.yml
+13
-0
No files found.
sandbox/models/Contact.class.php
0 → 100644
View file @
d2f41b75
<?php
require_once
(
'generated/BaseContact.class.php'
);
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class
Contact
extends
BaseContact
{
public
function
setTableDefinition
()
{
parent
::
setTableDefinition
();
}
public
function
setUp
()
{
parent
::
setUp
();
}
}
\ No newline at end of file
sandbox/models/User.class.php
0 → 100644
View file @
d2f41b75
<?php
require_once
(
'generated/BaseUser.class.php'
);
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class
User
extends
BaseUser
{
}
\ No newline at end of file
sandbox/models/generated/BaseContact.class.php
0 → 100644
View file @
d2f41b75
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract
class
BaseContact
extends
Doctrine_Record
{
public
function
setTableDefinition
()
{
$this
->
setTableName
(
'contact'
);
$this
->
hasColumn
(
'name'
,
'string'
,
255
);
}
public
function
setUp
()
{
$this
->
hasMany
(
'User'
,
array
(
'local'
=>
'id'
,
'foreign'
=>
'contact_id'
));
}
}
\ No newline at end of file
sandbox/models/generated/BaseUser.class.php
0 → 100644
View file @
d2f41b75
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
abstract
class
BaseUser
extends
Doctrine_Record
{
public
function
setTableDefinition
()
{
$this
->
setTableName
(
'user'
);
$this
->
hasColumn
(
'username'
,
'string'
,
255
);
$this
->
hasColumn
(
'contact_id'
,
'integer'
,
null
);
}
public
function
setUp
()
{
$this
->
hasOne
(
'Contact'
,
array
(
'local'
=>
'contact_id'
,
'foreign'
=>
'id'
));
}
}
\ No newline at end of file
sandbox/sandbox.db
0 → 100755
View file @
d2f41b75
File added
sandbox/schema/contact.yml
0 → 100644
View file @
d2f41b75
---
Contact
:
columns
:
name
:
type
:
string
length
:
255
\ No newline at end of file
sandbox/schema/user.yml
0 → 100644
View file @
d2f41b75
---
User
:
columns
:
username
:
type
:
string
length
:
255
contact_id
:
type
:
integer
size
:
11
relations
:
Contact
:
local
:
contact_id
foreign
:
id
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment