You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know it's very hard to implement following features to actual code base. Because there is a actual architecture.
I just wanted to share my idea.
Phalcon has got excellent model base for ORM and ODM.
ORM and ODM use same interfaces and same active record structure. This is excellent feature because data logic can transform without to change business logic.
Okay i'm starting to share my idea.
I needed to provider to bind Array collection to model. I don't want to use mongo because records are very few and will not change like following.
Part of the data which I use. I stored this data to /app/config/iban.json
index.php
Maybe can be mark key field, multiple sources and relation among sources. Source can be populate to DBMS after-development easily if required.
$di->set('odb', function() use ($config) {
$adapter = new \Phalcon\Db\Adapter\Memory();
$adapter->setSource('iban_records', json_decode(file_get_contents(APP_DIR . '/config/iban.json')));
return$adapter;
}, true);
This feature also be able to abstract model of API result like Facebook Graph API. Data source can be change depended to application environment, can be helpful writing test to models which have got API calls.
I know it's very hard to implement following features to actual code base. Because there is a actual architecture.
I just wanted to share my idea.
Phalcon has got excellent model base for ORM and ODM.
ORM and ODM use same interfaces and same active record structure. This is excellent feature because data logic can transform without to change business logic.
Okay i'm starting to share my idea.
I needed to provider to bind Array collection to model. I don't want to use mongo because records are very few and will not change like following.
Part of the data which I use. I stored this data to /app/config/iban.json
Following lines are use case which in my mind.
index.php
Maybe can be mark key field, multiple sources and relation among sources. Source can be populate to DBMS after-development easily if required.
/app/models/Iban.php
/app/controllers/IbanController.php
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: