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
3b8efd07
Commit
3b8efd07
authored
Oct 15, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added initIdentifier()
parent
54c3b98d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
Table.php
lib/Doctrine/Table.php
+18
-11
No files found.
lib/Doctrine/Table.php
View file @
3b8efd07
...
@@ -234,6 +234,20 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -234,6 +234,20 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$this
->
_options
[
'tableName'
]
=
Doctrine
::
tableize
(
$class
->
getName
());
$this
->
_options
[
'tableName'
]
=
Doctrine
::
tableize
(
$class
->
getName
());
}
}
$this
->
initIdentifier
();
$record
->
setUp
();
// if tree, set up tree
if
(
$this
->
isTree
())
{
$this
->
getTree
()
->
setUp
();
}
$this
->
_filters
[]
=
new
Doctrine_Record_Filter_Standard
();
$this
->
_repository
=
new
Doctrine_Table_Repository
(
$this
);
}
public
function
initIdentifier
()
{
switch
(
count
(
$this
->
_identifier
))
{
switch
(
count
(
$this
->
_identifier
))
{
case
0
:
case
0
:
$this
->
_columns
=
array_merge
(
array
(
'id'
=>
$this
->
_columns
=
array_merge
(
array
(
'id'
=>
...
@@ -252,8 +266,9 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -252,8 +266,9 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$found
=
false
;
$found
=
false
;
foreach
(
$e
as
$option
=>
$value
)
{
foreach
(
$e
as
$option
=>
$value
)
{
if
(
$found
)
if
(
$found
)
{
break
;
break
;
}
$e2
=
explode
(
':'
,
$option
);
$e2
=
explode
(
':'
,
$option
);
...
@@ -291,16 +306,8 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
...
@@ -291,16 +306,8 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
default
:
default
:
$this
->
_identifierType
=
Doctrine
::
IDENTIFIER_COMPOSITE
;
$this
->
_identifierType
=
Doctrine
::
IDENTIFIER_COMPOSITE
;
}
}
$record
->
setUp
();
// if tree, set up tree
if
(
$this
->
isTree
())
{
$this
->
getTree
()
->
setUp
();
}
$this
->
_filters
[]
=
new
Doctrine_Record_Filter_Standard
();
$this
->
_repository
=
new
Doctrine_Table_Repository
(
$this
);
}
}
public
function
getMethodOwner
(
$method
)
public
function
getMethodOwner
(
$method
)
{
{
return
(
isset
(
$this
->
_invokedMethods
[
$method
]))
?
return
(
isset
(
$this
->
_invokedMethods
[
$method
]))
?
...
...
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