Symfony 2 doesn't have the spatial points datatype that MySQL supports. I couldn't find anything on the Doctrine 2 documentation about this particular data type, so, does anyone know how to work with points in Symfony 2? Also, how to query based on a radius? Thanks! :)
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率

已采纳
在Symfony 2 / Doctrine 2实体中存储空间点?
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫
点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
3条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
dongqin1861 2012-04-25 06:34关注The easiest way would be to implement custom types for the spatial data types, and then declare custom DQL functions to make querying them simpler.
I wrote about this here: http://codeutopia.net/blog/2011/02/19/using-spatial-data-in-doctrine-2/
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报微信扫一扫
点击复制链接分享
评论按下Enter换行,Ctrl+Enter发表内容
报告相同问题?
提交
- 2015-08-07 19:02回答 2 已采纳 I think you may be confusing a Manager with a Repository. An EntityManager is really nothing mo
- 2017-09-01 13:00回答 3 已采纳 Clear the cache and try to alter the table name back with phpMyAdmin again. Once it is order again
- 2018-09-25 04:15回答 1 已采纳 What you are searching might be https://symfony.com/doc/current/reference/forms/types/entity.html
- 2021-04-03 14:58weixin_39598472的博客 直到Symfony 2成为问题为止, 因为你可以使用php从视图访问实体管理器, 但是随着Symfony 2中引入Twig的实现, 这变得越来越难。请记住, 这不是一个好习惯, 因为它不能与MVC工作流程一起完成。但是, 如果你很着急, 这将...
- 2014-07-29 21:10回答 1 已采纳 I had an initial solution of removing the Child's form type and having the Parent's form type hand
- 2014-08-10 13:07回答 2 已采纳 If you want to show all the titles listed, you don't need a custom function, you can do something
- 2014-11-20 14:51回答 2 已采纳 Saving (or serializing) a Doctrine entity to the session is problematic (here's a relevant SO ques
- 2021-01-30 10:29书香魔法袋的博客 对于任何应用程序来说,一个最常见和最具挑战的任务,就是从数据库中读取和持久化数据信息。尽管symfony框架并未...在本章,你将学习如何在Symfony项目中利用doctrine来提供丰富的数据库互动。NoteDoctrine与symf...
- 2013-06-07 01:56回答 1 已采纳 The answer is: Escaping: "%" char Use: "%%" Example: "pa%s%s" should be: "pa%%s%%s"
- 2012-04-18 15:22回答 3 已采纳 Actually, I was just missing a space in my dir option above. This works now, but I'm still wonderi
- 2017-06-02 09:19回答 1 已采纳 Seems like this can be solved by SQL by doing a simple join, something like this should work: $qu
- 2021-04-09 11:08Duyb的博客 对于任何应用程序来说,一个最常见和最具挑战的任务,就是从数据库中读取和持久化数据信息。尽管symfony框架并未...在本章,你将学习如何在Symfony项目中利用doctrine来提供丰富的数据库互动。Doctrine与symfony是...
- 2016-02-18 15:40listwebit的博客 对于任何应用程序来说最为普遍最具挑战性的任务,就是从数据库中读取和持久化数据信息。...在本章,你会学会doctrine的基本理念并且能够了解如何轻松使用数据库。 Doctrine可以完全脱离symfony使
- 2021-01-19 05:07weixin_39656206的博客 数据库和Doctrine让我们来面对这个对于任何应用程序来说最为普遍最具挑战性的任务,从数据库中读取和持久化数据信息。幸运的是,Symfony和Doctrine进行了集成,Doctrine类库全部目标就是给你一个强大的工具,让你的...
- 2024-07-25 20:08勤劳兔码农的博客 路由定义了 URL 与控制器方法之间的对应关系。在上述配置定义了一个/products路径,指向的index方法。通过本指南,您应该已经了解了如何安装 Symfony...希望本指南对您有所帮助,祝您在使用 Symfony 的过程中取得成功!
- 2021-01-19 11:46Choice林的博客 数据库和Doctrine让我们来面对这个对于任何应用程序来说最为普遍最具挑战性的任务,从数据库中读取和持久化数据信息。幸运的是,Symfony和Doctrine进行了集成,Doctrine类库全部目标就是给你一个强大的工具,让你的...
- 2020-08-16 02:44culi3118的博客 symfony 2 介绍 (Introduction) The Symfony PHP Framework is powerful, scalable and flexible. Yet it is considered by many, especially those new to frameworks, to have a very steep learning curve. ...
- 2020-08-14 00:59culi3118的博客 symfony开发In Part 1, I have shown you how to set up Symfony 2 and link up the database. We also covered some fundamental concepts of the framework. In this part, we will link things up by creating ...
- 2014-08-06 14:04huidaoli的博客 Symfony2集成了一个Form组件,让处理表单变...Symfony2 的Form组件是一个独立的类库,你可以在Symfony2项目之外使用它。 创建一个简单的表单:假设你要创建一个应用程序的todo列表,需要显示一些任务。因为你的用户...
- 没有解决我的问题, 去提问