<li>Function names may only contain alphanumeric characters. Underscores are not permitted. Numbers are permitted in function names but are discouraged.
<li>Function names must always start with a lowercase letter. When a function name consists of more than one word, the first letter of each new word must be capitalized. This is commonly called the "studlyCaps" or "camelCaps" method.
<li>For object-oriented programming, accessors for objects should always be prefixed with either "get" or "set". This applies to all classes except for Doctrine_Record which has some accessor methods prefixed with 'obtain' and 'assign'. The reason
Youcanquotethedbidentifiers(tableandfieldnames)withquoteIdentifier().Thedelimitingstyledependsonwhichdatabasedriverisbeingused.NOTE:justbecauseyouCANusedelimitedidentifiers,itdoesn't mean you SHOULD use them. In general, they end up causing way more problems than they solve. Anyway, it may be necessary when you have a reserved word as a field name (in this case, we suggest you to change it, if you can).
Youcanquotethedbidentifiers(tableandfieldnames)withquoteIdentifier().Thedelimitingstyledependsonwhichdatabasedriverisbeingused.NOTE:justbecauseyouCANusedelimitedidentifiers,itdoesn't mean you SHOULD use them. In general, they end up causing way more problems than they solve. Anyway, it may be necessary when you have a reserved word as a field name (in this case, we suggest you to change it, if you can).
Some of the internal Doctrine methods generate queries. Enabling the "quote_identifier" attribute of Doctrine you can tell Doctrine to quote the identifiers in these generated queries. For all user supplied queries this option is irrelevant.
Some of the internal Doctrine methods generate queries. Enabling the "quote_identifier" attribute of Doctrine you can tell Doctrine to quote the identifiers in these generated queries. For all user supplied queries this option is irrelevant.
<li>[http://en.wikipedia.org/wiki/AtomicityAtomicity]referstotheabilityoftheDBMStoguaranteethateitherallofthetasksofatransactionareperformedornoneofthemare.Thetransferoffundscanbecompletedoritcanfailforamultitudeofreasons,butatomicityguaranteesthatoneaccountwon't be debited if the other is not credited as well.</li>
*[http://en.wikipedia.org/wiki/AtomicityAtomicity]referstotheabilityoftheDBMStoguaranteethateitherallofthetasksofatransactionareperformedornoneofthemare.Thetransferoffundscanbecompletedoritcanfailforamultitudeofreasons,butatomicityguaranteesthatoneaccountwon't be debited if the other is not credited as well.
<li>[http://en.wikipedia.org/wiki/Database_consistency Consistency] refers to the database being in a legal state when the transaction begins and when it ends. This means that a transaction can'tbreaktherules,or//integrity constraints//, of the database. If an integrity constraint states that all accounts must have a positive balance, then any transaction violating this rule will be aborted.</li>
* [http://en.wikipedia.org/wiki/Database_consistency Consistency] refers to the database being in a legal state when the transaction begins and when it ends. This means that a transaction can'tbreaktherules,or//integrity constraints//, of the database. If an integrity constraint states that all accounts must have a positive balance, then any transaction violating this rule will be aborted.
<li>[http://en.wikipedia.org/wiki/Durability_%28computer_science%29Durability]referstotheguaranteethatoncetheuserhasbeennotifiedofsuccess,thetransactionwillpersist,andnotbeundone.Thismeansitwillsurvivesystemfailure,andthatthe[http://en.wikipedia.org/wiki/Database_systemdatabasesystem]hascheckedtheintegrityconstraintsandwon't need to abort the transaction. Typically, all transactions are written into a [http://en.wikipedia.org/wiki/Database_log log] that can be played back to recreate the system to its state right before the failure. A transaction can only be deemed committed after it is safely in the log.</li>
*[http://en.wikipedia.org/wiki/Durability_%28computer_science%29Durability]referstotheguaranteethatoncetheuserhasbeennotifiedofsuccess,thetransactionwillpersist,andnotbeundone.Thismeansitwillsurvivesystemfailure,andthatthe[http://en.wikipedia.org/wiki/Database_systemdatabasesystem]hascheckedtheintegrityconstraintsandwon't need to abort the transaction. Typically, all transactions are written into a [http://en.wikipedia.org/wiki/Database_log log] that can be played back to recreate the system to its state right before the failure. A transaction can only be deemed committed after it is safely in the log.
- //from [http://www.wikipedia.org wikipedia]//
- //from [http://www.wikipedia.org wikipedia]//
...
@@ -20,10 +20,10 @@ Ideally, a database system will guarantee all of the ACID(Atomicity, Consistency
...
@@ -20,10 +20,10 @@ Ideally, a database system will guarantee all of the ACID(Atomicity, Consistency
In Doctrine all operations are wrapped in transactions by default. There are some things that should be noticed about how Doctrine works internally:
In Doctrine all operations are wrapped in transactions by default. There are some things that should be noticed about how Doctrine works internally: