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
dd5c9d05
Commit
dd5c9d05
authored
Jan 07, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
12e76ba6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Coding standards - Testing - Writing tests.php
manual/docs/Coding standards - Testing - Writing tests.php
+2
-1
Getting started - Setting table definition - Default values.php
...g started - Setting table definition - Default values.php
+4
-3
No files found.
manual/docs/Coding standards - Testing - Writing tests.php
View file @
dd5c9d05
...
...
@@ -11,6 +11,7 @@ of the Doctrine_Record class.
<br
\
><br
\
>
However something like
<i>
Doctrine_PrimaryKey_TestCase
</i>
is not valid since its way too generic.
<br
\
><br
\
>
<li
\
>
Every class should have atleast one TestCase equivalent
<li
\
>
All testcase classes should inherit Doctrine_UnitTestCase
</ul>
<br
\
><br
\
>
...
...
@@ -29,4 +30,4 @@ divide the method into smaller methods.
</ul>
<b>
ASSERTIONS
</b><br
\
><br
\
>
<ul>
<li
\
>
There should never be assertions within any loops and rarely within functions.
<li
\
>
There should never be assertions within any loops and rarely within functions.
manual/docs/Getting started - Setting table definition - Default values.php
View file @
dd5c9d05
...
...
@@ -4,10 +4,11 @@ First this value is attached to every newly created Record.
<br
\
><br
\
>
<?php
renderCode
(
"<?php
class User {
<?php
class User extends Doctrine_record {
public function setTableDefinition() {
\$
this->hasColumn('name', 'string', 50,
'default name'
);
}
\$
this->hasColumn('name', 'string', 50,
array('default' => 'default name')
);
}
}
\$
user = new User();
...
...
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