10.04.2018 Views

Doctrine_manual-1-2-en

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table of Cont<strong>en</strong>ts<br />

xi<br />

G<strong>en</strong>erating Migrations ..................................................................................................... 335<br />

From Database ............................................................................................................................. 335<br />

From Existing Models................................................................................................................... 335<br />

Diff Tool ........................................................................................................................................ 336<br />

Conclusion ............................................................................................................. 337<br />

Ext<strong>en</strong>sions ..................................................................................................... 338<br />

Utilities.......................................................................................................... 340<br />

Pagination.............................................................................................................. 340<br />

Introduction...................................................................................................................... 340<br />

Working with Pager.......................................................................................................... 340<br />

Controlling Range Styles.................................................................................................. 342<br />

Sliding........................................................................................................................................... 343<br />

Jumping......................................................................................................................................... 343<br />

Advanced layouts with pager ........................................................................................... 344<br />

Mask ............................................................................................................................................. 344<br />

Template ....................................................................................................................................... 345<br />

Customizing pager layout................................................................................................. 347<br />

Facade ................................................................................................................... 350<br />

Creating & Dropping Databases ...................................................................................... 350<br />

Conv<strong>en</strong>i<strong>en</strong>ce Methods ...................................................................................................... 350<br />

Tasks................................................................................................................................. 352<br />

Command Line Interface ....................................................................................... 353<br />

Introduction...................................................................................................................... 353<br />

Tasks................................................................................................................................. 353<br />

Usage................................................................................................................................ 354<br />

Sandbox ................................................................................................................. 354<br />

Installation........................................................................................................................ 354<br />

Conclusion ............................................................................................................. 355<br />

Unit Testing .................................................................................................. 356<br />

Running tests......................................................................................................... 356<br />

CLI .................................................................................................................................... 356<br />

Browser ............................................................................................................................ 357<br />

Writing Tests ......................................................................................................... 357<br />

Ticket Tests ...................................................................................................................... 358<br />

Methods for testing .......................................................................................................... 358<br />

Assert Equal.................................................................................................................................. 358<br />

Assert Not Equal........................................................................................................................... 359<br />

Assert Id<strong>en</strong>tical............................................................................................................................. 359<br />

Assert True ................................................................................................................................... 359<br />

Assert False .................................................................................................................................. 359<br />

Mock Drivers .................................................................................................................... 359<br />

Test Class Guidelines ....................................................................................................... 360<br />

Test Method Guidelines.................................................................................................... 360<br />

Conclusion ............................................................................................................. 361<br />

Improving Performance ................................................................................ 362<br />

Introduction ........................................................................................................... 362<br />

Compile.................................................................................................................. 362<br />

Conservative Fetching ........................................................................................... 363<br />

Bundle your Class Files ......................................................................................... 365<br />

Use a Bytecode Cache ........................................................................................... 365<br />

Free Objects........................................................................................................... 365<br />

Other Tips .............................................................................................................. 366<br />

Conclusion ............................................................................................................. 367<br />

----------------- Brought to you by

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!