@@ -622,8 +622,10 @@ Once you have your repository, you have access to all sorts of helpful methods::
622622You can also take advantage of the useful ``findBy `` and ``findOneBy `` methods
623623to easily fetch objects based on multiple conditions::
624624
625- // query for one product matching by name and price
626- $product = $repository->findOneBy(array('name' => 'foo', 'price' => 19.99));
625+ // query for one product matching be name and price
626+ $product = $repository->findOneBy(
627+ array('name' => 'foo', 'price' => 19.99)
628+ );
627629
628630 // query for all products matching the name, ordered by price
629631 $products = $repository->findBy(
@@ -1144,7 +1146,8 @@ Now you can see this new code in action! Imagine you're inside a controller::
11441146 $em->flush();
11451147
11461148 return new Response(
1147- 'Created product id: '.$product->getId().' and category id: '.$category->getId()
1149+ 'Created product id: '.$product->getId()
1150+ .' and category id: '.$category->getId()
11481151 );
11491152 }
11501153 }
@@ -1478,8 +1481,8 @@ and ``nullable``. Take a few examples:
14781481 protected $name;
14791482
14801483 /**
1481- * A string field of length 150 that persists to an "email_address" column
1482- * and has a unique index.
1484+ * A string field of length 150 that persists to an
1485+ * "email_address" column and has a unique index.
14831486 *
14841487 * @ORM\Column(name="email_address", unique=true, length=150)
14851488 */
@@ -1489,13 +1492,14 @@ and ``nullable``. Take a few examples:
14891492
14901493 fields :
14911494 # A string field length 255 that cannot be null
1492- # (reflecting the default values for the "length" and *nullable* options)
1493- # type attribute is necessary in YAML definitions
1495+ # (reflecting the default values for the "length"
1496+ # and *nullable* options) type attribute is
1497+ # necessary in YAML definitions
14941498 name :
14951499 type : string
14961500
1497- # A string field of length 150 that persists to an "email_address" column
1498- # and has a unique index.
1501+ # A string field of length 150 that persists to
1502+ # an "email_address" column and has a unique index.
14991503 email :
15001504 type : string
15011505 column : email_address
@@ -1506,8 +1510,9 @@ and ``nullable``. Take a few examples:
15061510
15071511 <!--
15081512 A string field length 255 that cannot be null
1509- (reflecting the default values for the "length" and *nullable* options)
1510- type attribute is necessary in XML definitions
1513+ (reflecting the default values for the "length"
1514+ and *nullable* options) type attribute is
1515+ necessary in XML definitions
15111516 -->
15121517 <field name =" name" type =" string" />
15131518 <field name =" email"
0 commit comments