-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
477 lines (349 loc) · 15.6 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
2013-12-02
- update MakeDbTablev1.php fix dependencies names array.
fix by volker.richert
2013-10-12
- add<TableName> now adds none-required columns only if they are not null.
so for example if i have a timestamp column that defaults to now(), and i didn't enter
anything in that column, then it will not be added to the insert array and by that
will use the default value
2013-10-11
- included qi (Quote Identifier) and fp (format Paramaeter Name) functions
as a shortcut instead of fetchginf them from driver of adapter.
please notice that http://framework.zend.com/manual/2.2/en/modules/zend.db.adapter.html
recommends to work with them and uses anonymoous functions. i created regular function
for it to work on older php versions.
2013-08-17
- Fix issue 31 by abstracting database specific datetime format
- Fix soft delete functionality for Zend 1.x model generation
- Ignore short_open_tag directive if running at least 5.4.0
thanks to Steven Hadfield for his commits :)
2013-08-16 [email protected]
- included match<table_name> function for like %?% queries
- finally released RC2
2013-05-27 [email protected]
- add option to select template path
- add option to add other table prefixes
- add ASSOC option to fetch
- change template handling for different zfw by using setTemplatePath
- add a different template version using a value store instead of member
variables
Mon Jun 18 09:15:17 IDT 2012 [email protected]
version 0.7 rc2 is out!
- merged with pedrospdc branch so this patch only includes his fixes.
- loadModel wont bug with __call when used from the model itself anymore
2012-02-26 18:21:36 [email protected]
version 0.7 rc1 is out!
- Added more column types to DB->PHP conversion.
- Abstract model's require won't be added anymore if the require
flag is set to false.
- Added support to multiple where/and statements on
fetchList/fetchListToArray
- Added support to PDO escape statements on
fetchList/fetchListToArray
$query = array(
array('id = ?', $id), //WHERE
'publish_date >= NOW()' //AND
);
Please notice that you just need to use the second level array
in order to escape the query.
- Added save.return_id flag to config. If set, every insert save
method will return its primary key value (last inserted id). This won't
happen when updating.
Now fetchList and fetchListArray may be used from model - added
fetchList regex recognition to model abstract __call
- Added support to PDO escape and multiple where/and to countByQuery
- pdo and general bugs
2011-08-21 14:33:39 [email protected]
* version 0.6
- 0.6 beta as moved to the official version
- added fix in issue 11 (thanks to [email protected])
- added try catch to the pdo string generator to show proper error instead of seeing an exception
being thrown
- fixed issue 8: added unix socket support for mysql server
- checked issue 7 and it seems that the 0.6 beta patch fixed the issue (support for composite primary key).
+ please note. project was moved from SVN to GIT.
2011-03-24 14:41 [email protected]
* version 0.6 beta
- Large rework of system. Note that this is not completely backwards compatible.
- Work with MS-SQL (2000+ at least)
- composite key support (multiple columns to define a primary key)
- Lazy loading of related tables as defined by foreign keys
- Recursive saving of dependent tables
- Saving primary keys that are not auto-incremented
- Include custom source code into the generated models (so that the models can be generated safely)
- Optional logging of exceptions with Zend_Log support
- Saving inside database transactions
- Output conforms with Zend Framework formatting style
- Consolidated common functionality into Abstract classes
- Database comments included into generated model
- Optional handling of datetimes with Zend_Date
- TODO:
-Regenerate models for example
-Cleanup code
-Improve PHPdoc
-PHPUnit?
-More testing on different platforms
-Improve documentation/update existing
-Implement dirty checking?
2009-12-12 00:56 [email protected]
* version 0.5 RC1
- fixed fetchListToArray()
- paginator support.
new functions: select2Paginator,fetchAll2Paginator,
fetchListToPaginator
- started working on reference map for innodb tables, needs
testing. the referencemap variable is appended to the appropriate
class.
- new testzdmg directory: a working project to demostrate
the usage of the classes that are created by this script.
currently has 2 examples, need to add alot more in the future.
2009-11-30 00:56 [email protected]
* version 0.4a
* updated readme regarding the new model and dbtable
parent classes
* version 0.4 is complete!
new command line parameters for the script
* support for listing and unlisting tables by their names
or by regular expressions.
* common functions from model class where seperated to
a parent class MainModel
* common functions from dbtable class where seperated to
a parent class MainDbTable
* support to list all tables in a database
* support for modifying a row without loading it first
(big thanks to Aleksandar Scepanovic):
<?php
$foo = new Default_Model_Foo();
$foo->setId(5);
$foo->setUsername('test');
$foo->save();
// this example updates username field to test in row 5
?>
* support for specifying a location to store the created
class files
* updated readme.txt
2009-11-11 02:23 [email protected]
* templates/model.tpl: findOneBy<Field> returns the created class
2009-10-21 21:49 [email protected]
* templates/model.tpl: fixed bug in _get
2009-10-20 14:19 [email protected]
* templates/model.tpl: columnName2var and varName2Column are now
public so the user can use these functions as well
2009-10-19 14:40 kfirufk
* zend-db-model-generator.php: changed version to 0.3.3.1
2009-10-19 14:38 kfirufk
* templates/model.tpl: added varName2Column function and with it
fixed findBy<field> and findOneBy<field> functions to work with
fields like foo_bar or FooBar
2009-10-19 12:43 kfirufk
* ChangeLog: fixed changelog. i needed to execute svn2cl with -a
parameter. version 0.3.3 is ready
2009-10-19 12:39 kfirufk
* data, readme.txt, templates/dbtable.tpl, templates/model.tpl,
zend-db-model-generator.php: added the functions:
getPrimaryKeyName,countAllRows,countByQuery.
now the model class contains an array that holds the column names
and their corresponding setters/getters function name.
2009-10-11 19:54 kfirufk
* ChangeLog, doc/classtrees_default.html,
doc/default/MakeDbTable.html,
doc/default/_data---MakeDbTable.php.html,
doc/default/_data---config.php.html,
doc/default/_zend-db-model-generator.php.html, doc/errors.html,
doc/index.html: updated doc directory, version 0.3.1 is ready
2009-10-11 19:51 [email protected]
* readme.txt, templates/mapper.tpl, templates/model.tpl,
zend-db-model-generator.php: updated readme.txt with new examples
fixed save function
findBy<value>(field) now returns an array of instances of the
model class
findOneBy<value>(field) fetchs one row,sets the current class
with the data it fetched (field=value)
toArray() function: returns an array of (column names=>fields)
2009-10-10 14:25 kfirufk
* doc[ADD], doc/blank.html[ADD], doc/classtrees_default.html[ADD],
doc/default[ADD], doc/default/MakeDbTable.html[ADD],
doc/default/_data---MakeDbTable.php.html[ADD],
doc/default/_data---config.php.html[ADD],
doc/default/_zend-db-model-generator.php.html[ADD],
doc/elementindex.html[ADD], doc/elementindex_default.html[ADD],
doc/errors.html[ADD], doc/index.html[ADD],
doc/li_default.html[ADD], doc/media[ADD],
doc/media/banner.css[ADD], doc/media/stylesheet.css[ADD],
doc/packages.html[ADD]: new doc directory, now version is ready
2009-10-10 14:24 kfirufk
* doc[DEL]: removed doc directory
2009-10-10 14:22 kfirufk
* ChangeLog, readme.txt: updated readme.txt and Changelog, version
0.3 is ready
2009-10-10 14:20 [email protected]
* TODO, data/config.php-default, templates/mapper.tpl,
templates/model.tpl, zend-db-model-generator.php: moved defines
to main php file instead of config file
added more phpdocs
2009-10-09 11:52 [email protected]
* data/MakeDbTable.php, templates/dbtable.tpl,
templates/mapper.tpl, templates/model.tpl: added phpdocs to
variables,
new function to convert mysql data types to php
fixed php docs
code cleanup
2009-10-06 13:09 kfirufk
* zend-db-model-generator.php: removed the include of
Zend/Config/Ini.php
2009-10-06 11:22 kfirufk
* data/MakeDbTable.php, doc[ADD], doc/blank.html[ADD],
doc/classtrees_default.html[ADD], doc/default[ADD],
doc/default/MakeDbTable.html[ADD],
doc/default/_data---MakeDbTable.php.html[ADD],
doc/default/_zend-db-model-generator.php.html[ADD],
doc/elementindex.html[ADD], doc/elementindex_default.html[ADD],
doc/errors.html[ADD], doc/index.html[ADD],
doc/li_default.html[ADD], doc/media[ADD],
doc/media/banner.css[ADD], doc/media/stylesheet.css[ADD],
doc/packages.html[ADD]: removed Zend_Config_Ini from include.
regenreated doc directory. now closing v0.2.3.
2009-10-06 11:19 kfirufk
* data/MakeDbTable.php, data/config.php-default, doc[DEL],
templates/dbtable.tpl, templates/mapper.tpl, templates/model.tpl:
version 0.2.3:
templates follow ZF coding standards
basic doc generation support
A big thanks to Aleksandar Scepanovic for his comments and
patches.
2009-10-05 19:03 kfirufk
* doc/classtrees_default.html, doc/errors.html, doc/index.html:
updated doc directory
2009-10-05 19:00 kfirufk
* readme.txt: updated readme. single quotes and delete functions
where created by the help of Alek's comments.
2009-10-05 18:56 [email protected]
* templates/model.tpl: fixed bugs related to delete and
deleteRowById(). added validation check on
deleteRowByPrimaryKey()
2009-10-05 18:44 [email protected]
* ChangeLog, readme.txt, templates/dbtable.tpl,
templates/mapper.tpl, templates/model.tpl: changed double quotes
to single quotes when possible.
added delete() and deleteRowByPrimaryKey() function
2009-10-05 17:05 [email protected]
* data/MakeDbTable.php: fixed host in pdo connection
2009-10-04 13:13 kfirufk
* data/config.php-default, readme.txt, templates/mapper.tpl,
templates/model.tpl: added fetchListToArray(), updated readme.
2009-10-03 22:34 kfirufk
* ChangeLog: updated changelog
2009-10-03 22:31 kfirufk
* TODO, data[ADD], data/MakeDbTable.php[ADD],
data/config.php-default[ADD], doc[ADD], doc/blank.html[ADD],
doc/classtrees_default.html[ADD], doc/default[ADD],
doc/default/MakeDbTable.html[ADD],
doc/default/_data---MakeDbTable.php.html[ADD],
doc/default/_data---config.php.html[ADD],
doc/default/_zend-db-model-generator.php.html[ADD],
doc/elementindex.html[ADD], doc/elementindex_default.html[ADD],
doc/errors.html[ADD], doc/index.html[ADD],
doc/li_default.html[ADD], doc/media[ADD],
doc/media/banner.css[ADD], doc/media/stylesheet.css[ADD],
doc/packages.html[ADD], readme.txt, templates[ADD],
templates/dbtable.tpl[ADD], templates/mapper.tpl[ADD],
templates/model.tpl[ADD], zend-db-model-generator.php: zdmg v0.2:
rewrote most of the code.
added phpdoc to the main class file.
seperated the script to several files, now the code is cleaner
and easier to understand.
added function fetchAllToArray()
added config.php for configuration directives
added doc directory, api documents created by phpdoc
updated readme.txt with more information and examples
2009-09-30 09:08 kfirufk
* readme.txt: updated readme
2009-09-30 09:06 kfirufk
* readme.txt, zend-db-model-generator.php: defaulted add_required
to false again.
fixed typo in readme, thanks to Richard Hamilton
2009-09-29 10:01 kfirufk
* ChangeLog: updated changelog
2009-09-29 10:00 kfirufk
* zend-db-model-generator.php: added naming conversions to __set as
well, version 0.1.5.1
2009-09-29 09:46 kfirufk
* zend-db-model-generator.php: fixed a bug in __get() function:
name conversions
2009-09-27 13:28 [email protected]
* zend-db-model-generator.php: version 0.1.5
2009-09-27 13:27 [email protected]
* ChangeLog, zend-db-model-generator.php: patched __get function in
model class: column names are now properly converted to getters
of function name
2009-09-22 13:45 [email protected]
* ChangeLog, zend-db-model-generator.php: version 0.1.4
2009-09-22 13:42 [email protected]
* ., readme.txt, zend-db-model-generator.php: updated readme.
added require to Zend_Db_Table_Abstract if _addRequire flag is
ommited enabled.
some code cleanups
fixed duplicated of primary key in some of the functions (thanks
to AJIT DIXIT)
2009-09-20 16:58 [email protected]
* ., zend-db-model-generator.php: also updated readme file on last
commit. removing die() that i used for debugging in order for the
script to work again.
2009-09-20 16:54 [email protected]
* TODO, readme.txt, zend-db-model-generator.php: changed split()
function to explode() (split deprecated from php 5.3.0)
query('SET NAMES UTF8') instead of using the constant
PDO::MYSQL_ATTR_INIT_COMMAND. the constant seems to be missing in
some php versions.
added fetchList() function (thanks to AJIT DIXIT).
2009-09-05 19:28 kfirufk
* ChangeLog: version 0.1.3a
2009-09-05 19:27 kfirufk
* zend-db-model-generator.php: fixed a bug where a default
namespace would be empty instead of 'Default' when the user does
not supply the optional namespace parameter.
2009-08-25 07:11 kfirufk
* zend-db-model-generator.php: updated to version 0.1.3
2009-08-25 07:11 kfirufk
* readme.txt, zend-db-model-generator.php: added a 3rd parameter
for namespace.
patched setOptions function for a proper conversion column names
to methods. Patches by Charles Spraggs. (thanks)
2009-08-23 02:58 kfirufk
* ChangeLog: updated changelog
2009-08-23 02:48 kfirufk
* ChangeLog, zend-db-model-generator.php: started using svn2cl to
create Changelog file.
whenever the user execute the save() function to insert a new row
(not to update), the last inserted id is saved in the appropriate
protected variable in the model class.
2009-08-22 22:56 kfirufk
* ChangeLog[ADD]: add changelog file
2009-08-22 22:53 kfirufk
* zend-db-model-generator.php: changed version to 0.1.2
2009-08-22 22:46 kfirufk
* zend-db-model-generator.php: 1) Fixed a bug where the primary key
was being generated twice in the
Default_{table}_Model class.
2) Add magic method support to do ->findBy<value>(<value>);
fix by Charles Spraggs
2009-08-22 17:46 kfirufk
* zend-db-model-generator.php: fixed error message on invalid
property
2009-08-20 14:41 kfirufk
* zend-db-model-generator.php: add get/set functions to primary
keys
2009-07-25 17:03 kfirufk
* zend-db-model-generator.php: replaced '/' with
DIRECTORY_SEPARATOR
2009-07-25 16:39 kfirufk
* zend-db-model-generator.php: fixed find() decleration in the
mapper template
2009-07-22 11:56 kfirufk
* TODO[ADD]: added TODO file.
2009-07-07 08:53 kfirufk
* zend-db-model-generator.php: Mapper template fix
2009-07-02 11:45 kfirufk
* readme.txt[ADD], zend-db-model-generator.php[ADD]: version 0.1
2009-07-02 11:39
* .[ADD]: Initial directory structure.