{"id":18924468,"url":"https://github.com/outlandishideas/ormlitebundle","last_synced_at":"2026-03-14T03:30:20.325Z","repository":{"id":9893721,"uuid":"11899362","full_name":"outlandishideas/OrmLiteBundle","owner":"outlandishideas","description":"Persist large datasets efficiently using Doctrine mapping configuration","archived":false,"fork":false,"pushed_at":"2013-08-05T14:53:40.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-14T04:14:13.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outlandishideas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-05T13:52:15.000Z","updated_at":"2015-08-29T11:52:41.000Z","dependencies_parsed_at":"2022-08-28T01:50:43.539Z","dependency_job_id":null,"html_url":"https://github.com/outlandishideas/OrmLiteBundle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outlandishideas%2FOrmLiteBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outlandishideas%2FOrmLiteBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outlandishideas%2FOrmLiteBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outlandishideas%2FOrmLiteBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outlandishideas","download_url":"https://codeload.github.com/outlandishideas/OrmLiteBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921875,"owners_count":19718842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:06:55.028Z","updated_at":"2026-03-14T03:30:20.236Z","avatar_url":"https://github.com/outlandishideas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"ORM Lite Bundle\n===============\n\n[Doctrine](http://www.doctrine-project.org/projects/orm.html) is great for managing relatively small numbers of objects.\nBut when you need to handle large datasets (e.g. \u003e 10,000 objects), the increased memory usage and slow queries start to\nbecome a problem.\n\nThis bundle lets you continue to use some of Doctrine's features with minimal overhead.\n\n### Stuff that works\n\n- Mappings and schema management\n- Migrations and fixtures\n- Queries with simple criteria such as `array('userId' =\u003e 1)`\n- Bulk INSERT, UPDATE and DELETE\n- Entities with public properties\n\n### Stuff that doesn't work\n\n- Entities with private or protected properties\n- Associations and lazy loading\n- Tracking object state and flushing changes\n- Compound primary keys\n- Custom repository classes\n- Probably a lot more\n\nInstallation\n------------\n\n1. Require in `composer.json`: `\"outlandish/orm-lite-bundle\": \"dev-master\"`\n2. Activate in `AppKernel.php`: `new \\Outlandish\\OrmLiteBundle\\OrmLiteBundle(),`\n3. Import into `config.yml`: `resource: @OrmLiteBundle/Resources/config/services.yml`\n\nUsage Example\n-------------\n\nPoint.php\n\n    /** @Entity */\n    class Point {\n        /** @Id @Column(type=\"integer\") @GeneratedValue */\n        public $id;\n        /** @Column(type=\"integer\") */\n        public $x;\n        /** @Column(type=\"integer\") */\n        public $y;\n    }\n\nPointController.php\n\n    class PointController extends ContainerAware {\n        public function exampleAction() {\n            //get entity manager from service container\n            $ormLite = $this-\u003econtainer-\u003eget('outlandish.ormlite');\n\n            //get array of objects of class 'Point' where x=0\n            $points = $ormLite-\u003efindBy('Point', array('x' =\u003e 0));\n\n            //modify objects\n            foreach ($points as $point) {\n                $point-\u003ex = 1;\n            }\n\n            //persist them\n            $ormLite-\u003eupdate($points);\n\n            //create some new objects\n            $newPoints = array();\n            for ($i=0; $i \u003c 10000; $i++) {\n                $point = new Point();\n                $point-\u003ex = random(-50, 50);\n                $point-\u003ey = random(-10, 10);\n                $newPoints[] = $point;\n            }\n\n            //persist them\n            $ormLite-\u003einsert($newPoints);\n        }\n    }\n\nPerformance\n-----------\n\nNot formally benchmarked yet.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutlandishideas%2Formlitebundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutlandishideas%2Formlitebundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutlandishideas%2Formlitebundle/lists"}