Changeset 11082
- Timestamp:
- 08/24/08 14:28:27 (3 months ago)
- Files:
-
- doc/branches/1.1/tutorial/my-first-project.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/tutorial/my-first-project.txt
r11054 r11082 95 95 $ php symfony propel:build-model 96 96 97 >**Note**: Make sure to be at the root of your project (`sf_sandbox/`) when you98 > call the `symfony` command.97 >**Note**: Make sure your command line folder is set to the root of your project 98 >(`sf_sandbox/`) when you call the `symfony` command. 99 99 100 100 A few classes are created in the `sf_sandbox/lib/model/` directory. These are the 101 classes of the object-relational mapping , who allowus to have access to a relational101 classes of the object-relational mapping system, which allows us to have access to a relational 102 102 database from within an object-oriented code without writing a single SQL query. 103 103 By default, symfony uses the Propel library for this purpose. Theses classes are … … 141 141 >`/config/propel.ini` and ensure that the following lines have 7 sets of '..' in them: 142 142 > 143 > propel.database.createUrl = sqlite://./../../../../../../../data/sandbox.db144 > propel.database.url = sqlite://./../../../../../../../data/sandbox.db143 > propel.database.createUrl = sqlite://./../../../../../../../data/sandbox.db 144 > propel.database.url = sqlite://./../../../../../../../data/sandbox.db 145 145 > 146 146 >If they do not, copy the lines as they appear here, and save the file. … … 152 152 >**Note**: Don't worry if there is a warning at that point, it is normal. 153 153 >The `propel:insert-sql` command removes existing tables before adding the ones 154 > of your `lib.model.schema.sql`, and there is no table to remove at that time.154 >from your `lib.model.schema.sql`, and there are no tables to remove at the moment. 155 155 156 156 As we want to be able to create and edit the blog posts and comments, we also need to … … 204 204 } 205 205 206 Now, feel free to create a new postto make the blog look less empty.206 Now, feel free to create some new posts to make the blog look less empty. 207 207 208 208 