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
76b3f2c9
Commit
76b3f2c9
authored
Oct 24, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored Doctrine_Table
parent
5ed9eeff
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
79 deletions
+94
-79
Record.php
lib/Doctrine/Record.php
+10
-18
Table.php
lib/Doctrine/Table.php
+84
-61
No files found.
lib/Doctrine/Record.php
View file @
76b3f2c9
...
...
@@ -944,7 +944,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
* count
* this class implements countable interface
*
* @return integer
the number of columns
* @return integer
the number of columns in this record
*/
public
function
count
()
{
return
count
(
$this
->
_data
);
...
...
@@ -952,9 +952,9 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
/**
* alias for count()
*
* @return integer
* @return integer
the number of columns in this record
*/
public
function
getC
olumnCount
()
{
public
function
c
olumnCount
()
{
return
$this
->
count
();
}
/**
...
...
@@ -1285,20 +1285,6 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
$this
->
originals
[
$name
]
=
clone
$coll
;
}
}
/**
* filterRelated
* lazy initializes a new filter instance for given related component
*
* @param $componentAlias alias of the related component
* @return Doctrine_Filter
*/
final
public
function
filterRelated
(
$componentAlias
)
{
if
(
!
isset
(
$this
->
filters
[
$componentAlias
]))
{
$this
->
filters
[
$componentAlias
]
=
new
Doctrine_Filter
(
$componentAlias
);
}
return
$this
->
filters
[
$componentAlias
];
}
/**
* binds One-to-One composite relation
*
...
...
@@ -1398,11 +1384,17 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
$this
->
_table
->
setTableName
(
$tableName
);
}
public
function
setInheritanceMap
(
$map
)
{
$this
->
_table
->
set
InheritanceMap
(
$map
);
$this
->
_table
->
set
Option
(
'inheritanceMap'
,
$map
);
}
public
function
setEnumValues
(
$column
,
$values
)
{
$this
->
_table
->
setEnumValues
(
$column
,
$values
);
}
public
function
option
(
$name
,
$value
=
null
)
{
if
(
$value
==
null
)
$this
->
_table
->
getOption
(
$name
);
else
$this
->
_table
->
setOption
(
$name
,
$value
);
}
/**
* addListener
*
...
...
lib/Doctrine/Table.php
View file @
76b3f2c9
This diff is collapsed.
Click to expand it.
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