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
ead84035
Commit
ead84035
authored
Oct 15, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
c4b3a18a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
Connection.php
lib/Doctrine/Connection.php
+3
-3
Table.php
lib/Doctrine/Table.php
+12
-10
No files found.
lib/Doctrine/Connection.php
View file @
ead84035
...
@@ -900,9 +900,9 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
...
@@ -900,9 +900,9 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
$class
=
$name
.
'Table'
;
$class
=
$name
.
'Table'
;
if
(
class_exists
(
$class
)
&&
in_array
(
'Doctrine_Table'
,
class_parents
(
$class
)))
{
if
(
class_exists
(
$class
)
&&
in_array
(
'Doctrine_Table'
,
class_parents
(
$class
)))
{
$table
=
new
$class
(
$name
,
$this
);
$table
=
new
$class
(
$name
,
$this
,
true
);
}
else
{
}
else
{
$table
=
new
Doctrine_Table
(
$name
,
$this
);
$table
=
new
Doctrine_Table
(
$name
,
$this
,
true
);
}
}
$this
->
tables
[
$name
]
=
$table
;
$this
->
tables
[
$name
]
=
$table
;
...
...
lib/Doctrine/Table.php
View file @
ead84035
...
@@ -176,7 +176,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -176,7 +176,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
* @param string $name the name of the component
* @param string $name the name of the component
* @param Doctrine_Connection $conn the connection associated with this table
* @param Doctrine_Connection $conn the connection associated with this table
*/
*/
public
function
__construct
(
$name
,
Doctrine_Connection
$conn
)
public
function
__construct
(
$name
,
Doctrine_Connection
$conn
,
$initDefinition
=
false
)
{
{
$this
->
_conn
=
$conn
;
$this
->
_conn
=
$conn
;
...
@@ -185,6 +185,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -185,6 +185,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$this
->
_options
[
'name'
]
=
$name
;
$this
->
_options
[
'name'
]
=
$name
;
$this
->
_parser
=
new
Doctrine_Relation_Parser
(
$this
);
$this
->
_parser
=
new
Doctrine_Relation_Parser
(
$this
);
if
(
$initDefinition
)
{
$record
=
$this
->
initDefinition
(
$name
);
$record
=
$this
->
initDefinition
(
$name
);
$this
->
initIdentifier
();
$this
->
initIdentifier
();
...
@@ -195,6 +196,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -195,6 +196,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
if
(
$this
->
isTree
())
{
if
(
$this
->
isTree
())
{
$this
->
getTree
()
->
setUp
();
$this
->
getTree
()
->
setUp
();
}
}
}
$this
->
_filters
[]
=
new
Doctrine_Record_Filter_Standard
();
$this
->
_filters
[]
=
new
Doctrine_Record_Filter_Standard
();
$this
->
_repository
=
new
Doctrine_Table_Repository
(
$this
);
$this
->
_repository
=
new
Doctrine_Table_Repository
(
$this
);
}
}
...
...
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