Skip to content

Commit 08954fc

Browse files
authored
Merge pull request #13 from GmanG/patch-3
fixed question titles and code view
2 parents 7d5f743 + 1914f93 commit 08954fc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

4. Databases/1. Models, Resource Models & Collections/10. Questions.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
##1. Which methods exist to access the table of a resource model?
1+
## 1. Which methods exist to access the table of a resource model?
22

3-
Mage::getModel('core/resource')->getTableName('colin_database/results');
4-
Mage::getModel('core/resource')->getMainTable('colin_database/results');
3+
Mage::getModel('core/resource')->getTableName('colin_database/results');
4+
Mage::getModel('core/resource')->getMainTable('colin_database/results');
55

6-
##2. Which methods exist to create joins between tables on collections and on select instances?
6+
## 2. Which methods exist to create joins between tables on collections and on select instances?
77

88
- join()
99
- joinInner()
@@ -13,7 +13,7 @@
1313
- joinCross()
1414
- joinNatural()
1515

16-
##3. How does Magento support different RDBMSs?
16+
## 3. How does Magento support different RDBMSs?
1717

1818
<global>
1919
<resources>
@@ -46,7 +46,7 @@
4646
$resource = Mage::getModel('core/resource')->getConnection('wordpress_read');
4747

4848

49-
##4. How do table name lookups work, and what is the purpose of making table names configurable?
49+
## 4. How do table name lookups work, and what is the purpose of making table names configurable?
5050

5151
Mage::getModel('core/resource')->getTableName('colin_database/results');
5252

@@ -60,17 +60,17 @@ Which events are fired automatically during CRUD operations?
6060
- model_delete_after
6161
- model_delete_commit_after
6262

63-
##5. How does Magento figure out if a save() call needs to create an INSERT or an UPDATE query?
63+
## 5. How does Magento figure out if a save() call needs to create an INSERT or an UPDATE query?
6464

6565
Checks for *$object->getId()*
6666

67-
##6. How many ways exist to specify filters on a flat table collection?
67+
## 6. How many ways exist to specify filters on a flat table collection?
6868

6969
- $model->getCollection()->addFieldToFilter()
7070
- $model->getCollection()->getSelect()->where()
7171

7272

73-
##7. Which methods exist to influence the ordering of the result set for flat table collections?
73+
## 7. Which methods exist to influence the ordering of the result set for flat table collections?
7474

7575
- $model->getCollection()->setOrder($field, $dir)
7676
- $model->getCollection()->getSelect()->order("$query")

0 commit comments

Comments
 (0)