وبلاگ بلیان

Doctrine ORM for PHP

معرفی کتاب «Doctrine ORM for PHP» نوشتهٔ Jonathan H. Wage, Konsta Vesterinen، منتشرشده توسط نشر Sensio labs books در سال 2009. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Doctrine ORM for PHP» در دستهٔ بدون دسته‌بندی قرار دارد.

The Guide to Doctrine for PHP is the ultimate users manual for you whether you are a beginner or an advanced user. The text aims to document and reference all core functionality provided by Doctrine. It contains lots of detailed explanations and exercise code that can be followed a long with as you read. Guide to Doctrine for PHP......Page 1 Table of Contents......Page 2 What is the Problem?......Page 13 Basic Overview......Page 14 Doctrine Explained......Page 15 Key Concepts......Page 16 Conclusion......Page 17 Installing......Page 18 Installing......Page 19 Download Pear Package......Page 20 Require Doctrine Base Class......Page 21 Autoloading Explained......Page 22 Test Script......Page 23 Conclusion......Page 24 DSN, the Data Source Name......Page 25 Opening New Connections......Page 27 Testing your Connection......Page 28 Conclusion......Page 29 Levels of Configuration......Page 31 Portability Mode Attributes......Page 32 Identifier quoting......Page 33 Exporting......Page 34 Index name format......Page 35 Validation attributes......Page 36 Optional String Syntax......Page 37 Conclusion......Page 38 Retrieve Connections......Page 39 Get Connection Name......Page 40 Get All Connections......Page 41 Creating and Dropping Database......Page 42 Conclusion......Page 43 Generating Models......Page 44 Making the first import......Page 45 Schema Files......Page 49 Conservative......Page 51 Aggressive......Page 52 Conclusion......Page 53 Column aliases......Page 54 Default values......Page 55 Introduction......Page 56 Boolean......Page 57 Integer......Page 58 Decimal......Page 59 Array......Page 60 Blob......Page 61 Timestamp......Page 62 Date......Page 63 Enum......Page 64 Examples......Page 65 Introduction......Page 68 One to One......Page 73 One to Many and Many to One......Page 74 Tree Structure......Page 76 Many to Many......Page 77 Non-Equal Nest Relations......Page 81 Equal Nest Relations......Page 82 Introduction......Page 85 Integrity Actions......Page 87 Introduction......Page 88 Adding indexes......Page 89 Index options......Page 90 Special indexes......Page 91 Checks......Page 92 Table Options......Page 93 Transitive Persistence......Page 94 Delete Cascades......Page 95 Database-Level Cascades......Page 96 Conclusion......Page 97 Define Test Schema......Page 98 Creating Related Records......Page 102 Updating Related Records......Page 105 Deleting Related Records......Page 106 Testing the Existence of a Relation......Page 107 Deleting a Link......Page 108 Fetching Objects......Page 110 Sample Queries......Page 112 Field Lazy Loading......Page 119 From Array......Page 120 Synchronize With Array......Page 121 Conclusion......Page 122 Introduction......Page 123 SELECT queries......Page 125 Aggregate values......Page 130 UPDATE queries......Page 131 DELETE Queries......Page 132 FROM clause......Page 133 JOIN syntax......Page 134 ON keyword......Page 135 WITH keyword......Page 136 INDEXBY keyword......Page 137 WHERE clause......Page 138 Literals......Page 139 Input parameters......Page 141 In expressions......Page 143 Like Expressions......Page 144 Exists Expressions......Page 145 All and Any Expressions......Page 147 Subqueries......Page 148 String functions......Page 150 Comparisons using subqueries......Page 152 GROUP BY, HAVING clauses......Page 153 Introduction......Page 156 Using random order......Page 157 Driver Portability......Page 158 The limit-subquery-algorithm......Page 159 Named Queries......Page 160 Accessing Named Query......Page 161 BNF......Page 162 Magic Finders......Page 166 Debugging Queries......Page 167 Conclusion......Page 168 Retrieving Connections......Page 169 Creating Connections......Page 170 Getting a Table Object......Page 171 Getting Column Information......Page 172 Getting Relation Information......Page 173 Finder Methods......Page 174 Custom Finders......Page 176 Properties......Page 177 Updating Records......Page 181 Refreshing Records......Page 182 Refreshing relationships......Page 183 Using Expression Values......Page 185 Getting Record State......Page 186 Getting Object Copy......Page 187 Serializing......Page 188 Collection......Page 189 Adding new Elements......Page 190 Getting Collection Count......Page 191 Key Mapping......Page 192 Loading Related Records......Page 193 More Validation......Page 195 Explicit Validation......Page 197 Profiler......Page 198 Optimistic Locking......Page 199 Examples......Page 200 Using Views......Page 201 Conclusion......Page 203 Component Queries......Page 204 Fetching from Multiple Components......Page 205 Conclusion......Page 206 Abbreviated Syntax......Page 207 Relationships......Page 208 Customizing Relationships......Page 209 One to Many......Page 210 Many to Many......Page 211 Attributes......Page 212 ActAs Behaviors......Page 213 Options......Page 214 Indexes......Page 215 Column Aggregation Inheritance......Page 216 Column Aliases......Page 217 Global Schema Information......Page 218 Using Schema Files......Page 219 Conclusion......Page 220 Introduction......Page 221 Not Null......Page 223 Email......Page 224 Not Blank......Page 225 No Space......Page 226 Past......Page 227 Future......Page 228 Min Length......Page 229 Country......Page 230 HTML Color......Page 231 Range......Page 232 Unique......Page 234 Regular Expression......Page 235 Credit Card......Page 236 Read Only......Page 237 Unsigned......Page 238 Conclusion......Page 239 Simple......Page 240 Concrete......Page 242 Column Aggregation......Page 245 Conclusion......Page 248 Introduction......Page 249 Simple Templates......Page 250 Templates with Relations......Page 252 Delegate Methods......Page 255 Creating Behaviors......Page 257 Versionable......Page 258 Timestampable......Page 261 Sluggable......Page 262 I18n......Page 264 NestedSet......Page 267 Searchable......Page 268 Geographical......Page 269 SoftDelete......Page 273 Nesting Behaviors......Page 276 Generating Files......Page 277 Conclusion......Page 278 Introduction......Page 279 Index Building......Page 281 Text Analyzers......Page 283 Performing Searches......Page 284 File searches......Page 287 Conclusion......Page 288 Introduction......Page 289 Setting Up......Page 290 Multiple Trees......Page 291 Inserting a Node......Page 292 Moving a Node......Page 293 Examining and Retrieving Siblings......Page 294 Examining and Retrieving Descendants......Page 295 Advanced Usage......Page 296 Fetching a Tree with Relations......Page 297 Rendering with Indention......Page 298 Conclusion......Page 299 Dumping......Page 300 Writing......Page 301 Fixtures For Nested Sets......Page 305 Conclusion......Page 306 Introduction......Page 307 Creating Tables......Page 308 Creating Foreign Keys......Page 310 Altering table......Page 311 Creating Indexes......Page 313 Deleting database elements......Page 314 Introduction......Page 315 Listing Table Columns......Page 316 Listing Views......Page 317 Getting Native Declaration......Page 318 Setting table type......Page 319 Conclusion......Page 320 Introduction......Page 321 Nesting......Page 322 Savepoints......Page 323 Isolation Levels......Page 324 Conclusion......Page 325 Introduction......Page 326 Creating a New Listener......Page 327 Attaching listeners......Page 328 Transaction Listeners......Page 329 Hydration Listeners......Page 330 Record Listeners......Page 331 Record Hooks......Page 333 DQL Hooks......Page 334 Chaining Listeners......Page 337 Event Codes......Page 338 Skip Next Listener......Page 339 Conclusion......Page 340 Memcache......Page 341 Db......Page 342 Using the Query Cache......Page 343 Using the Result Cache......Page 344 Fine Tuning......Page 345 Conclusion......Page 346 Performing Migrations......Page 347 Writing Migration Classes......Page 348 Create Table......Page 350 Create Constraint......Page 351 Create Foreign Key......Page 352 Change Column......Page 353 Remove Index......Page 354 Pre and Post Hooks......Page 355 Conclusion......Page 356 Working with Pager......Page 357 Jumping......Page 360 Template......Page 362 Customizing pager layout......Page 365 Creating & Dropping Databases......Page 367 Convenience Methods......Page 368 Introduction......Page 370 Usage......Page 371 Conclusion......Page 372 CLI......Page 373 Writing Tests......Page 374 Ticket Tests......Page 375 Assert True......Page 376 Mock Drivers......Page 377 Conclusion......Page 378 Compile......Page 379 Conservative Fetching......Page 380 Bundle your Class Files......Page 382 Free Objects......Page 383 Conclusion......Page 384 Doctrine CORE......Page 386 Design Patterns Used......Page 387 Speed......Page 388 Conclusion......Page 389 Connection exceptions......Page 390 Conclusion......Page 391 User Management System......Page 392 Forum Application......Page 395 Conclusion......Page 398 Line Termination......Page 399 Functions and Methods......Page 400 Record Columns......Page 401 Variable Substitution......Page 402 Classes......Page 403 Functions and Methods......Page 404 Control Statements......Page 406 Conclusion......Page 407
دانلود کتاب Doctrine ORM for PHP