{"action":"created","issue":{"url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/365","labels_url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/365/comments","events_url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/365/events","html_url":"https://github.com/simple-mvc-framework/framework/issues/365","id":124621554,"number":365,"title":"About implementation of a (small) ORM native into Nova Framework ","user":{"login":"LuckyCyborg","id":13488485,"avatar_url":"https://avatars.githubusercontent.com/u/13488485?v=3","gravatar_id":"","url":"https://api.github.com/users/LuckyCyborg","html_url":"https://github.com/LuckyCyborg","followers_url":"https://api.github.com/users/LuckyCyborg/followers","following_url":"https://api.github.com/users/LuckyCyborg/following{/other_user}","gists_url":"https://api.github.com/users/LuckyCyborg/gists{/gist_id}","starred_url":"https://api.github.com/users/LuckyCyborg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuckyCyborg/subscriptions","organizations_url":"https://api.github.com/users/LuckyCyborg/orgs","repos_url":"https://api.github.com/users/LuckyCyborg/repos","events_url":"https://api.github.com/users/LuckyCyborg/events{/privacy}","received_events_url":"https://api.github.com/users/LuckyCyborg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":61,"created_at":"2016-01-03T00:58:11Z","updated_at":"2016-01-04T16:56:03Z","closed_at":null,"body":"Sure, there are plenty of powerful **ORM**s... Some are \"indoctrinated\", other are \"illuminated\". :smirk: \r\n\r\nBut sometimes, while still you want to use an ORM, from habits or even from necessity, those \"indoctrinated\" or \"illuminated\" ORMs are overwhelming for your current project.\r\n\r\nThen, I and @tomvlk , we decided to write a small one for Nova Framework.\r\n\r\nBut, in your opinion, what you expect from a small **ORM**?\r\n\r\nI for one, I see an small **ORM** essentially as a **DataMapper** who manage **Entities**.\r\n\r\nI even find one which looks right on as the Design I have in mind, it is called **Spot**:\r\n\r\nhttp://phpdatamapper.com/\r\n\r\nSure, make no sense to integrate directly it, using yet another Events Manager (and we already have three), and wanting its own dedicated Connection; still, it use for Database Connection, guess what? **Doctrine DBAL**.\r\n\r\nIn other hand, it have nice Events, very similar with our **BaseModel**, known about **Relations** and other nice things. I'm about opinion that if we reuse its code to write our ORM, will rise something good.\r\n\r\nYour opinion? You will like something like/similar with **Spot** included into Nova Framework?  "},"comment":{"url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/comments/168733077","html_url":"https://github.com/simple-mvc-framework/framework/issues/365#issuecomment-168733077","issue_url":"https://api.github.com/repos/simple-mvc-framework/framework/issues/365","id":168733077,"user":{"login":"tomvlk","id":3877688,"avatar_url":"https://avatars.githubusercontent.com/u/3877688?v=3","gravatar_id":"","url":"https://api.github.com/users/tomvlk","html_url":"https://github.com/tomvlk","followers_url":"https://api.github.com/users/tomvlk/followers","following_url":"https://api.github.com/users/tomvlk/following{/other_user}","gists_url":"https://api.github.com/users/tomvlk/gists{/gist_id}","starred_url":"https://api.github.com/users/tomvlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomvlk/subscriptions","organizations_url":"https://api.github.com/users/tomvlk/orgs","repos_url":"https://api.github.com/users/tomvlk/repos","events_url":"https://api.github.com/users/tomvlk/events{/privacy}","received_events_url":"https://api.github.com/users/tomvlk/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T16:56:03Z","updated_at":"2016-01-04T16:56:03Z","body":"@LuckyCyborg For now I'm going to resolve this by setting the _state in the find($id) method. But we need to check for a better solution."}}