Skip to content

Commit e93db35

Browse files
committed
Fix typo in facade example
1 parent ab6b4d4 commit e93db35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/documentation/4.0/developing-applications.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ There are many ways to organize how you save and load data. You could use the OR
379379

380380
If you use the ORM, bear in mind that it acts as a bean factory and expects to manage your domain objects -- rather than you having DI/1 manage them. This means that domain objects created via the ORM (via `entityNew()`, `entityLoad()` etc) will not have any dependencies wired in. Since such domain objects will often need access to services in your main bean factory, one approach you can use is to obtain FW/1's bean factory via the `framework.facade` (new in 4.0.0):
381381

382-
var myService = new framework.facade().getBeanFactory().getService( "someService" );
382+
var myService = new framework.facade().getBeanFactory().getBean( "someService" );
383383

384384
Using Bean Factories
385385
---

0 commit comments

Comments
 (0)