Try something like:
class MyController extends AbstractActionController
{
public function indexAction()
{
var_dump($this->getServiceLocator()->get('doctrine.connection.orm_default'));
exit;
}
}
Marco Pivetta
http://twitter.com/Ocramius
http://marco-pivetta.com
On 24 September 2012 10:40, gzamboni [via Zend Framework Community] <
[email protected]> wrote:
> Can you make an example for how can i retrieve this object?
> Mi potresti fare un esempio? Sono veramente scarso attualmente e sto
> cercando di imparare il piu possibile anche se i tutorial scarseggiano sul
> sito ufficiale ancora xD
> grazie
> thx
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://zend-framework-community.634137.n4.nabble.com/Postgres-configuration-with-doctrine-ZF2-tp4657079p4657081.html
> To unsubscribe from Zend Framework Community, click
> here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4>
> .
> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Postgres-configuration-with-doctrine-ZF2-tp4657079p4657082.html
Sent from the Zend Framework mailing list archive at Nabble.com.
