Doctrine ORM for PHP
معرفی کتاب «Doctrine ORM for PHP» نوشتهٔ Jonathan H. Wage, Konsta Vesterinen، منتشرشده توسط نشر Sensio SA در سال 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 Checking Requirements......Page 18 Installing......Page 19 PEAR Installer......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 30 Portability Mode Attributes......Page 31 Identifier quoting......Page 32 Exporting......Page 33 Database name format......Page 34 Optional String Syntax......Page 35 Conclusion......Page 36 Retrieve Connections......Page 37 Get Connection Name......Page 38 Get All Connections......Page 39 Conclusion......Page 40 Generating Models......Page 42 Making the first import......Page 43 Schema Files......Page 46 Conservative......Page 48 Aggressive......Page 49 Conclusion......Page 50 Column Lengths......Page 51 Default values......Page 52 Introduction......Page 53 Boolean......Page 54 Float......Page 55 Decimal......Page 56 Array......Page 57 Clob......Page 58 Time......Page 59 Enum......Page 60 Examples......Page 61 Introduction......Page 64 One to One......Page 69 One to Many and Many to One......Page 70 Tree Structure......Page 72 Many to Many......Page 73 Non-Equal Nest Relations......Page 77 Equal Nest Relations......Page 78 Introduction......Page 80 Integrity Actions......Page 82 Adding indexes......Page 84 Index options......Page 86 Checks......Page 87 Table Options......Page 88 Application-Level Cascades......Page 89 Delete Cascades......Page 90 Database-Level Cascades......Page 91 Conclusion......Page 92 Define Test Schema......Page 93 Creating Related Records......Page 97 Retrieving Related Records......Page 99 Deleting Related Records......Page 100 Testing the Existence of a Relation......Page 101 Deleting a Link......Page 102 Fetching Objects......Page 103 Sample Queries......Page 105 Field Lazy Loading......Page 111 Synchronize With Array......Page 112 Overriding the Constructor......Page 113 Conclusion......Page 114 Introduction......Page 115 SELECT queries......Page 117 Aggregate values......Page 121 UPDATE queries......Page 122 DELETE Queries......Page 123 JOIN syntax......Page 124 WITH keyword......Page 126 INDEXBY keyword......Page 127 WHERE clause......Page 128 Literals......Page 129 Input parameters......Page 131 Operators and operator precedence......Page 132 In expressions......Page 133 Like Expressions......Page 134 Exists Expressions......Page 135 Subqueries......Page 137 String functions......Page 139 Comparisons using subqueries......Page 141 GROUP BY, HAVING clauses......Page 142 Introduction......Page 144 Using random order......Page 145 Driver Portability......Page 146 The limit-subquery-algorithm......Page 147 Named Queries......Page 148 Accessing Named Query......Page 149 BNF......Page 150 Magic Finders......Page 154 Conclusion......Page 155 Retrieving Connections......Page 156 Flushing the Connection......Page 157 Getting Column Information......Page 158 Getting Relation Information......Page 159 Finder Methods......Page 161 Custom Finders......Page 162 Properties......Page 163 Updating Records......Page 166 Refreshing Records......Page 167 Refreshing relationships......Page 168 Deleting Records......Page 169 Getting Record State......Page 170 Getting Object Copy......Page 171 Checking Existence......Page 172 Accessing Elements......Page 173 Getting Collection Count......Page 174 Key Mapping......Page 175 Loading Related Records......Page 176 Validator......Page 177 More Validation......Page 178 Explicit Validation......Page 179 Profiler......Page 180 Optimistic Locking......Page 181 Examples......Page 182 Using Views......Page 183 Conclusion......Page 184 Component Queries......Page 185 Fetching from Multiple Components......Page 186 Conclusion......Page 187 Abbreviated Syntax......Page 188 Relationships......Page 189 Customizing Relationships......Page 190 One to Many......Page 191 Many to Many......Page 192 Attributes......Page 193 ActAs Behaviors......Page 194 Listeners......Page 195 Indexes......Page 196 Concrete Inheritance......Page 197 Column Aggregation Inheritance......Page 198 Global Schema Information......Page 199 Using Schema Files......Page 200 Conclusion......Page 201 Introduction......Page 202 Not Null......Page 204 Email......Page 205 Not Blank......Page 206 No Space......Page 207 Future......Page 208 Min Length......Page 209 Country......Page 210 IP Address......Page 211 HTML Color......Page 212 Range......Page 213 Unique......Page 214 Regular Expression......Page 215 Credit Card......Page 216 Unsigned......Page 217 US State......Page 218 Conclusion......Page 219 Simple......Page 220 Concrete......Page 221 Column Aggregation......Page 224 Conclusion......Page 227 Introduction......Page 228 Simple Templates......Page 229 Templates with Relations......Page 230 Delegate Methods......Page 234 Creating Behaviors......Page 235 Versionable......Page 236 Timestampable......Page 238 Sluggable......Page 240 I18n......Page 242 NestedSet......Page 244 Searchable......Page 246 Geographical......Page 247 SoftDelete......Page 250 Nesting Behaviors......Page 252 Generating Files......Page 253 Querying Generated Classes......Page 254 Conclusion......Page 255 Introduction......Page 256 Index Building......Page 258 Text Analyzers......Page 259 Performing Searches......Page 260 File searches......Page 263 Conclusion......Page 264 Introduction......Page 265 Setting Up......Page 266 Working with Trees......Page 267 Deleting a Node......Page 268 Examining a Node......Page 269 Examining and Retrieving Descendants......Page 270 Advanced Usage......Page 271 Fetching a Tree with Relations......Page 272 Conclusion......Page 273 Dumping......Page 274 Writing......Page 275 Fixtures For Nested Sets......Page 279 Conclusion......Page 280 Introduction......Page 281 Creating Tables......Page 282 Creating Foreign Keys......Page 284 Altering table......Page 285 Deleting database elements......Page 287 Introduction......Page 288 Listing Table Indexes......Page 289 Getting portable declaration......Page 290 Setting table type......Page 291 Conclusion......Page 292 Introduction......Page 293 Nesting......Page 294 Savepoints......Page 295 Isolation Levels......Page 296 Conclusion......Page 297 Introduction......Page 298 Creating a New Listener......Page 299 Pre and Post Connect......Page 300 Query Execution Listeners......Page 301 Hydration Listeners......Page 302 Record Listeners......Page 303 Record Hooks......Page 304 DQL Hooks......Page 305 Event Codes......Page 308 Skip Next Operation......Page 309 Conclusion......Page 310 Memcache......Page 311 Db......Page 312 Using the Query Cache......Page 313 Using the Result Cache......Page 314 Conclusion......Page 315 Performing Migrations......Page 316 Writing Migration Classes......Page 317 Drop Table......Page 319 Create Foreign Key......Page 320 Change Column......Page 321 Pre and Post Hooks......Page 322 Generating Migrations......Page 323 Conclusion......Page 324 Working with Pager......Page 325 Controlling Range Styles......Page 327 Jumping......Page 328 Mask......Page 329 Template......Page 330 Customizing pager layout......Page 332 Convenience Methods......Page 335 Tasks......Page 337 Tasks......Page 338 Installation......Page 339 Conclusion......Page 340 CLI......Page 341 Writing Tests......Page 342 Assert Equal......Page 343 Mock Drivers......Page 344 Test Method Guidelines......Page 345 Conclusion......Page 346 Compile......Page 347 Conservative Fetching......Page 348 Free Objects......Page 350 Other Tips......Page 351 Conclusion......Page 352 Doctrine CORE......Page 353 Design Patterns Used......Page 354 Speed......Page 355 Conclusion......Page 356 Query exceptions......Page 357 Conclusion......Page 358 User Management System......Page 359 Forum Application......Page 362 Conclusion......Page 365 Line Termination......Page 366 Functions and Methods......Page 367 Record Columns......Page 368 Concatenation Line Breaking......Page 369 Functions and Methods......Page 370 Control Statements......Page 372 Conclusion......Page 373 This book is by far the best way to learn Doctrine for PHP. Doctrine simplifies database interactivity with PHP and adds additional security with very little overhead. Until I had this book to use, I had trouble learning to fully maximize the benefits of using Doctrine as an ORM.
دانلود کتاب Doctrine ORM for PHP