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
ecd2612e
Commit
ecd2612e
authored
Sep 26, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sqlite datadict updated
parent
816971e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
Sqlite.php
lib/Doctrine/DataDict/Sqlite.php
+9
-1
Object.php
lib/Doctrine/Schema/Object.php
+11
-1
No files found.
lib/Doctrine/DataDict/Sqlite.php
View file @
ecd2612e
...
...
@@ -115,8 +115,16 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict {
$sql
=
"SELECT name FROM sqlite_master WHERE type='table' "
.
"UNION ALL SELECT name FROM sqlite_temp_master "
.
"WHERE type='table' ORDER BY name"
;
$tables
=
array
();
$stmt
=
$this
->
dbh
->
query
(
$sql
);
return
$this
->
dbh
->
query
(
$sql
)
->
fetchAll
(
PDO
::
FETCH_ASSOC
);
$data
=
$stmt
->
fetchAll
(
PDO
::
FETCH_COLUMN
);
foreach
(
$data
as
$table
)
{
$tables
[]
=
new
Doctrine_Schema_Table
(
array
(
'name'
=>
$table
));
}
return
$tables
;
}
/**
* lists table triggers
...
...
lib/Doctrine/Schema/Object.php
View file @
ecd2612e
...
...
@@ -37,8 +37,18 @@ abstract class Doctrine_Schema_Object implements IteratorAggregate, Countable {
protected
$children
=
array
();
protected
$definition
=
array
();
protected
$definition
=
array
(
'name'
=>
''
);
public
function
__construct
(
array
$definition
)
{
foreach
(
$this
->
definition
as
$key
=>
$val
)
{
if
(
isset
(
$definition
[
$key
]))
$this
->
definition
[
$key
]
=
$definition
[
$key
];
}
}
public
function
getName
()
{
return
$this
->
definition
[
'name'
];
}
/**
*
* @return int
...
...
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