{"id":433,"date":"2014-04-05T15:09:45","date_gmt":"2014-04-05T13:09:45","guid":{"rendered":"https:\/\/paul-anton.vanhandel.at\/?p=433"},"modified":"2014-04-05T15:09:45","modified_gmt":"2014-04-05T13:09:45","slug":"method-cascading","status":"publish","type":"post","link":"https:\/\/paul-anton.vanhandel.at\/?p=433","title":{"rendered":"method cascading"},"content":{"rendered":"<p>Ein Beispiel, wie sch\u00f6n gut durchdachte fluent interfaces sind:<\/p>\n<pre class=\"brush: php; gutter: true; first-line: 1\">$countryName = $this-&gt;container-&gt;get( &#039;doctrine&#039; )-&gt;getManager()\r\n    -&gt;getRepository( &#039;SomevendorModelDbBundle:CountryLocale&#039; )\r\n    -&gt;getByCountryIdAndLocale(\r\n        $countryId,\r\n        $this-&gt;container-&gt;get( &#039;request&#039; )-&gt;getLocale() )\r\n    -&gt;getName();<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ein Beispiel, wie sch\u00f6n gut durchdachte fluent interfaces sind: $countryName = $this-&gt;container-&gt;get( &#039;doctrine&#039; )-&gt;getManager() -&gt;getRepository( &#039;SomevendorModelDbBundle:CountryLocale&#039; ) -&gt;getByCountryIdAndLocale( $countryId, $this-&gt;container-&gt;get( &#039;request&#039; )-&gt;getLocale() ) -&gt;getName();<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,88,1,11,87],"tags":[90,89,61,91],"class_list":["post-433","post","type-post","status-publish","format-standard","hentry","category-devel","category-88","category-allgemein","category-php","category-symfony-2","tag-fluent-interface","tag-method-cascading","tag-php","tag-symfony-2"],"_links":{"self":[{"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=433"}],"version-history":[{"count":0,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/posts\/433\/revisions"}],"wp:attachment":[{"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}