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
f2a7390c
Commit
f2a7390c
authored
Oct 16, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed calls to wrong static functions and added some functionality to sandbox.
parent
c8812542
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
8 deletions
+10
-8
Facade.php
lib/Doctrine/Facade.php
+3
-3
config.php.dist
sandbox/config.php.dist
+5
-3
BaseUser.class.php
sandbox/models/generated/BaseUser.class.php
+1
-1
sandbox.db
sandbox/sandbox.db
+0
-0
user.yml
sandbox/schema/user.yml
+1
-1
No files found.
lib/Doctrine/Facade.php
View file @
f2a7390c
...
...
@@ -169,7 +169,7 @@ class Doctrine_Facade
{
$directory
=
'/tmp/tmp_doctrine_models'
;
Doctrine
::
generateModelsFromDb
(
$directory
);
Doctrine
_Facade
::
generateModelsFromDb
(
$directory
);
$export
=
new
Doctrine_Export_Schema
();
...
...
@@ -321,7 +321,7 @@ class Doctrine_Facade
if
(
$delete
)
{
$models
=
Doctrine
::
getLoadedModels
();
$models
=
Doctrine
_Facade
::
getLoadedModels
();
foreach
(
$models
as
$model
)
{
...
...
@@ -351,7 +351,7 @@ class Doctrine_Facade
if
(
$delete
)
{
$models
=
Doctrine
::
getLoadedModels
();
$models
=
Doctrine
_Facade
::
getLoadedModels
();
foreach
(
$models
as
$model
)
{
...
...
sandbox/config.php.dist
View file @
f2a7390c
...
...
@@ -38,13 +38,15 @@ define('SANDBOX_PATH', dirname(__FILE__));
define
(
'DOCTRINE_PATH'
,
dirname
(
SANDBOX_PATH
)
.
DIRECTORY_SEPARATOR
.
'lib'
);
define
(
'DATA_FIXTURES_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'data'
.
DIRECTORY_SEPARATOR
.
'fixtures'
);
define
(
'MODELS_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'models'
);
define
(
'MIGRATIONS_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'm
odel
s'
);
define
(
'MIGRATIONS_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'm
igration
s'
);
define
(
'SQL_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'data'
.
DIRECTORY_SEPARATOR
.
'sql'
);
define
(
'YAML_SCHEMA_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'schema'
);
define
(
'DSN'
,
'sqlite:/'
.
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'sandbox.db'
);
define
(
'DB_PATH'
,
SANDBOX_PATH
.
DIRECTORY_SEPARATOR
.
'sandbox.db'
);
define
(
'DSN'
,
'sqlite:'
.
DB_PATH
);
require_once
(
DOCTRINE_PATH
.
DIRECTORY_SEPARATOR
.
'Doctrine.php'
);
spl_autoload_register
(
array
(
'Doctrine'
,
'autoload'
));
Doctrine_Manager
::
connection
(
DSN
,
'sandbox'
);
\ No newline at end of file
$pdo
=
new
PDO
(
DSN
);
Doctrine_Manager
::
connection
(
$pdo
,
'sandbox'
);
\ No newline at end of file
sandbox/models/generated/BaseUser.class.php
View file @
f2a7390c
...
...
@@ -10,7 +10,7 @@ abstract class BaseUser extends Doctrine_Record
{
$this
->
setTableName
(
'user'
);
$this
->
hasColumn
(
'username'
,
'string'
,
255
);
$this
->
hasColumn
(
'contact_id'
,
'integer'
,
null
);
$this
->
hasColumn
(
'contact_id'
,
'integer'
,
11
);
}
public
function
setUp
()
...
...
sandbox/sandbox.db
View file @
f2a7390c
No preview for this file type
sandbox/schema/user.yml
View file @
f2a7390c
...
...
@@ -6,7 +6,7 @@ User:
length
:
255
contact_id
:
type
:
integer
size
:
11
length
:
11
relations
:
Contact
:
local
:
contact_id
...
...
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