6.7. Propel - smart, easy object persistence

简介:

ORM ( object relation mapping )

即将数据库表映射成对像,实现通过实例化对像来访问数据库

本文主要介绍Propel - smart, easy object persistence

6.7.1. 环境配置

配置php.ini

在php.ini文件中加入:

extension=php_pdo.dll

6.7.2. PEAR Installer

$> pear channel-discover pear.phpdb.org
$> pear install phpdb/propel_generator
$> pear install phpdb/propel_runtime
			

Adding Channel

D:\>pear channel-discover pear.phpdb.org
Adding Channel "pear.phpdb.org" succeeded
Discovery of channel "pear.phpdb.org" succeeded
			

propel_generator 安装日志

D:\php-5.1.4-Win32>pear install phpdb/propel_generator
phpdb/propel_generator requires package "channel://pear.phing.info/phing" (versi
on >= 2.2.0)
downloading creole-1.1.0.tgz ...
Starting to download creole-1.1.0.tgz (92,633 bytes)
.....................done: 92,633 bytes
install ok: channel://pear.phpdb.org/creole-1.1.0
			

propel_runtime 安装日志

D:\php-5.1.4-Win32>pear install phpdb/propel_runtime
downloading propel_runtime-1.2.0.tgz ...
Starting to download propel_runtime-1.2.0.tgz (45,959 bytes)
.............done: 45,959 bytes
install ok: channel://pear.phpdb.org/propel_runtime-1.2.0

D:\php-5.1.4-Win32>
		




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
程序员 Go API
|
前端开发 Java
java:How to use variable parameter? (easy to understand)
It's the first time to write a blog in English for me. (About variable parameter)
87 0
java:How to use variable parameter? (easy to understand)
|
Kotlin
Program type already present: org.intellij.lang.annotations.Flow\Program type already present: org.i
Program type already present: org.intellij.lang.annotations.Flow\Program type already present: org.i
120 0
Program type already present: org.intellij.lang.annotations.Flow\Program type already present: org.i
SAP Fiori Elements - smart control demo1 currency field - how is manifest.json loaded
SAP Fiori Elements - smart control demo1 currency field - how is manifest.json loaded
122 0
SAP Fiori Elements - smart control demo1 currency field - how is manifest.json loaded
How to put S4 extension field to CRM WebUI search view in the design time
How to put S4 extension field to CRM WebUI search view in the design time
112 0
How to put S4 extension field to CRM WebUI search view in the design time
ABAP Method remote comparison
Suppose you would like to compare one method of class in different systems without using UDO tool, you can use the built-in remote comparison functionality embedded in ABAP editor:
ABAP Method remote comparison
An example of EXPORT / IMPORT usage - in office integration and odata metadata model cache
An example of EXPORT / IMPORT usage - in office integration and odata metadata model cache
107 0
An example of EXPORT / IMPORT usage - in office integration and odata metadata model cache
|
编解码 NoSQL Java
Introducing Redisson Live Objects (Object Hash Mapping)
文章来源于阿里云 MVP顾睿。
1203 0
|
数据库 Android开发 存储
Improving Android ORMLite foreign key mapping , based on new version 5.0
Improving Android ORMLite foreign key mapping , based on new version 5.
1100 0