Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/KumbiaPHP/ActiveRecord

New Active Record for KumbiaPHP
https://github.com/KumbiaPHP/ActiveRecord

cambiando el nombre de la bd a test

fd96082a8f28206c2758a823ff1f6a2e9be5ae2c authored almost 11 years ago by manuel_j555 <[email protected]>
usando tinyint en vez de bit en el create table de los test

75266429bf95ab141360cd673981a37f919ddd5d authored almost 11 years ago by manuel_j555 <[email protected]>
Agregado test de Metadata

215d765d5991a225e9bd70082f59acdc7e50e5e8 authored almost 11 years ago by manuel_j555 <[email protected]>
Reduce complexity

d63cbcbc0d6d0380d37354f4cc1714a7a504e095 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Merge pull request #14 from manuelj555/tests

Agregado test de Metadata

00c449b774921277bda5f2fd53c404910e0c8c43 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Merge pull request #16 from Ashrey/master

Remove if's

2e3befa34e7c3820364e6e7a929fdff82ddea921 authored almost 11 years ago by Alberto Berroteran <[email protected]>
cambiando el nombre de la bd a test

107bbfb7fadc8eeb37543322324f2de4f87778b2 authored almost 11 years ago by manuel_j555 <[email protected]>
Remove if's

Reduce complex of method

03c1fc9238946e4fe06c964a844ddc833f72fde7 authored almost 11 years ago by Alberto Berroteran <[email protected]>
usando tinyint en vez de bit en el create table de los test

5aab4de892a13bb15c3930e71194e1ea4083855c authored almost 11 years ago by manuel_j555 <[email protected]>
quitando el use y prefijando la tabla con la bd

ce475b7fbbfc8269df8d1b64b8ad19388a5807e4 authored almost 11 years ago by manuel_j555 <[email protected]>
agregando use database al travis

además se adapta el create table para que solo cree si no existe

2f905d9b14a5cf0515c98d35ecd0696fbe2cc030 authored almost 11 years ago by manuel_j555 <[email protected]>
Agregado test de Metadata

0d6521a9bb544bf2486b86fcf43df54b8a03acec authored almost 11 years ago by manuel_j555 <[email protected]>
Merge pull request #15 from Ashrey/master

Add require for query_exec

55840cde83e38952076941fec876a34f00787704 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Add require for query_exec

The autoloader not run on function, only class

1087e0068468d22d372275a8922bbf5ceb3da55f authored almost 11 years ago by Alberto Berroteran <[email protected]>
Merge pull request #13 from manuelj555/tests

Se quitan los require de las clases

97d8da8f2f7e71c332e5a19ccd0b4dc334030f89 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Añadiendo un autoloader

e4c2f696e8cd700fe5aaa8abf09c777963f143af authored almost 11 years ago by manuel_j555 <[email protected]>
Se quitan los require de las clases

Ya que se usará el autoload para cargarlas

6289a066851604d0591f6a5039397ad7cff05654 authored almost 11 years ago by manuel_j555 <[email protected]>
Mejora en la selección de fields

4dedb818bbe9738f1c9856852fb4783971dcf586 authored almost 11 years ago by joanhey <[email protected]>
El config evia el array con return

335f58f1476ed9e942c1aa12f575eabb87d49632 authored almost 11 years ago by joanhey <[email protected]>
Merge pull request #12 from manuelj555/tests

añadiendo Tests

bc7b1bf0943e4d8199dfca3c5451f4af6b44cc92 authored almost 11 years ago by joanhey <[email protected]>
combio en la config de travis.yml

la carpeta tests ahora está en minusculas

0813c5a74f7a2d574c56ff94c246063275579d17 authored almost 11 years ago by manuel_j555 <[email protected]>
Añadiendo los Primeros Tests

El test de la clase Db y la creación de Instancias PDO

43fdc790ae693dbd46db0ddf54ad3ebf0cff3e97 authored almost 11 years ago by manuel_j555 <[email protected]>
Mejoras de Lite Record

Validaciones más extrictas y el all() devuelve un fetchAll()

b10af35114fd1b3c50cd813faf5a1426c491e75f authored almost 11 years ago by joanhey <[email protected]>
Merge pull request #11 from manuelj555/nuevo_dir

nueva estructura de directorios y namespaces

32f847f56e273506a158411b68ab44162578d47f authored almost 11 years ago by joanhey <[email protected]>
nueva estructura de directorios y namespaces

2a2e89a157723604cb87395fd7666f8bb98d0940 authored almost 11 years ago by manuel_j555 <[email protected]>
Merge pull request #9 from Ashrey/master

Bug on the type name

58a0558db80d223df2630da16e9d4992b9e692e0 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Bug on the type name

ff3a4b481d5b024d150e0cfbec0d4ca08b79526b authored almost 11 years ago by Alberto Berroteran <[email protected]>
Pequeñas mejoras en LiteRecord

ef2aa086f1443aea536ae57a582c59f360d0ab17 authored almost 11 years ago by joanhey <[email protected]>
Merge pull request #8 from Ashrey/master

Array is required

fb399ca7149d48b0f0ca4f7653f6593224377f04 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Array is required

8b509210e0241d9f4da6c810304f67bafe4f4594 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Limpieza LiteRecord

2fbb99dc32d1ed71a4cc50b188ea6b4a5f86e80a authored almost 11 years ago by joanhey <[email protected]>
Mejoras phpdoc

19169f90210c0bad9d52473a2f79c114ad8617e3 authored almost 11 years ago by joanhey <[email protected]>
Mejora en la clase Db

13f7f4e48c294888defad2ae0e1cae710facf155 authored almost 11 years ago by joanhey <[email protected]>
Merge pull request #7 from Ashrey/master

Fix en el metadata

6311bfde1ede29daf056cd08ae23fc410204a503 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Fix en el metadata

Por ahora solo funciona en el de mysql, el postgress aún contiene errores que deben ser arreglados

8df0ba2fee0d9c9f53b3023d1e529432e9eb7ff9 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Merge pull request #6 from Ashrey/master

limpieza

35209d45f452b2d664e9c2f55592f55d84bf7744 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Los values se calculan en el constructor

a7fa6f55461ce9f92ef8954dbffa9c7d60b45783 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Los argumentos se toman dinamicamente

El parametro $arg no es necesario

2882560f26049e0bbbae5bf1e201215322265526 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Merge pull request #4 from Ashrey/master

Declaración de variables faltantes

ab1ace646c0356faa6c45744de90979f72843287 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Declaración de variables faltantes

f5a82bfb6796de7065417156913fa56076737b98 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Merge pull request #2 from manuelj555/master

Adaptando a los estandares Psr

0899c9fb0aace6037e3d7597b24b360916baff5f authored almost 11 years ago by joanhey <[email protected]>
se corrige nombre de método en la clase Metadata

52d1739508a2d63e74b636a70a947a0e2883eeae authored almost 11 years ago by manuel_j555 <[email protected]>
Adaptando a los estandares Psr

b78aa9d9a81b47308e9b0adb855f4a7db7f09c91 authored almost 11 years ago by manuel_j555 <[email protected]>
Merge pull request #1 from Ashrey/master

Paginador y ActiveRecord

b01c7a4a742037f1b2b44d7b1c083d9b2aa68aa1 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Fixeado errores en el paginator

Se producia la perdida de una de las filas y estaba mal implementado el iterator

0346eea796ac591f267fb0ee3ba2a35ce96b3118 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Pasa el nombre del driver al query_exec

Con esto no se necesita releer la configuración

bdee5a8e9348e8aaa442c8bc03f1877d03baebb7 authored almost 11 years ago by Alberto Berroteran <[email protected]>
Quitadas las validaciones, ya que se usara una clase externa.

6bfd984c3f98d5c678e04bf83fe605eaedb7d894 authored almost 11 years ago by joanhey <[email protected]>
Cambio en la llamada de la exception

fa0d9dbdc2440d24471911743f00742220f273e9 authored almost 11 years ago by joanhey <[email protected]>
Cambio en 2 nombres de variables

ae94159d0181a6402d8bd8fda51411790b031f85 authored almost 11 years ago by joanhey <[email protected]>
MySql config para que use UTF8 en PHP antes de 5.3.6

8c3378a2182303d54ed85d8a3d5485693fae2351 authored about 11 years ago by joanhey <[email protected]>
La extensión PDO está cargada por defecto desde php 5.1.

Quitamos la exceptción

a7b1ba6322391b9193682d06e216a5acd69afdf0 authored about 11 years ago by joanhey <[email protected]>
cambios en readme

4cbbce1a9ea25e24d7fe99c4b5c5b5d5dee59415 authored about 11 years ago by joanhey <[email protected]>
Añadida información al ejemplo de conig databases.php

3da0fe79e019e598b5d18593bda880871272b74d authored about 11 years ago by joanhey <[email protected]>
Cambio para llamar la exception de kumbiaphp correctamente

eaf94125f999fba547cc61c40be65ad90576f42a authored about 11 years ago by joanhey <[email protected]>
Optimización y añadido la carga de app/config/databases.php.

Se incluye config_databases.php de ejemplo, para poner en app/confin/databases.php

b93d6e9515fcbbe7a1733f707d62d233cbe34ad9 authored about 11 years ago by joanhey <[email protected]>
Como este ActiveRecord es para php 5.3, podemos usar lcfirst().

bcb4d7336865d20ca0aae13de6a48346d51d4f02 authored about 11 years ago by joanhey <[email protected]>
Cambio para devolver bien el statement

be0aff7d60cddb4b0bf75f0d85ff95d7d78205bc authored about 11 years ago by joanhey <[email protected]>
Por defecto delete() convertira a int. Si alguna PK no es int, deberá crear su método el programador.

2171995b92b66eec50124c7b2d2f3022273bc6f3 authored about 11 years ago by joanhey <[email protected]>
Ahora mira el # de argumentos, para saber si envian valores al query. Ya que el primer valor puede ser NULL.

04fb32330e9500c58179d5af5927a4961b5750fa authored about 11 years ago by joanhey <[email protected]>
Añadido método sql() para llamadas directas. Cambio en query()

62936e65dad3fd31f47ea57d06fee919b1bed33a authored about 11 years ago by joanhey <[email protected]>
Cambios en el método all()

f10ae0cba45c40b1c24f84e75c4568d605a1f7b4 authored about 11 years ago by joanhey <[email protected]>
Añadido metodo all() a LiteRecord. Corregido bug en smallcase() y getPK()

16a659bacddc92914ef11b244c03e1065dcca724 authored about 11 years ago by joanhey <[email protected]>
Si no se envia el dsn no funcionará, quitado del default (dsn es el único parámetro obligatorio)

b5877951e5f4c25dadc9bd42e0067f9121033621 authored about 11 years ago by joanhey <[email protected]>
Ahora los parámetros del driver los enviaremos por config params

También usaremos (falta modificar la carga de config) .php en vez de .ini para la configuración ...

2472a155ba6ef6138d2cc0361c841a9cf5e8a1c8 authored about 11 years ago by joanhey <[email protected]>
cambio readme

e6044912c8306969ccf133efc00e86239eed7ced authored over 11 years ago by joanhey <[email protected]>
Añadido logo al readme

664e2d9ae482eec6bb0213e3173b76396d6e38f7 authored over 11 years ago by joanhey <[email protected]>
Fuerza valor númerico para el paginate de ActiveRecord

ce979d726ee76dced789991e467e29761d6ad5c0 authored over 11 years ago by joanhey <[email protected]>
Añadido getPK() a LiteRecord

c6ea02fbe880282f768a922749525be17db7ab18 authored over 11 years ago by joanhey <[email protected]>
Cambios para late static binding de php 5.3

7e8f1e55476ef73651d4fcf98fd965aab0eab3b8 authored over 11 years ago by joanhey <[email protected]>
Readme listo usar bd default

c70aadb25867085d3e01b11a0ffba2756c703c20 authored over 11 years ago by joanhey <[email protected]>
Por defecto siempre carga la bd 'default' de config

8595353c1a223f838e8a7993747bc23cd85e223f authored over 11 years ago by joanhey <[email protected]>
Cambio para usar Late static binding de php 5.3

getTable(), getSchema(), getSource() y getDatabase() se llaman con static:: y no self:: para pod...

e1587c03369dc96d7b5af4782642e9adc27c4961 authored over 11 years ago by joanhey <[email protected]>
Cambios para la clase Db y config

4edd7df1facbf309919092439ce598bf42299a9a authored over 11 years ago by joanhey <[email protected]>
Forzar número de $page y $perPage en paginator

e2a70ef313869a1c759a0dffb0ef057e33c70b82 authored over 11 years ago by joanhey <[email protected]>
PK por defecto y prefijo del nombre de tablas

PK por defecto id, así no es necesario mirar los metadatos cada vez sino es necesario, sólo si e...

8074e5475ede5217643c462ae8436a6b9c39a94e authored over 11 years ago by joanhey <[email protected]>
update invoke()

b4a0f9b6d3d12a9a2ec056aae6a8a5cfb5377572 authored over 11 years ago by joanhey <[email protected]>
Obtener un objeto ActiveRecord por PK, usando el objeto como función $var = $modelo($id)

f3e18e33f4fc5e899a7ada3c70afd0bc4e1b3472 authored over 11 years ago by joanhey <[email protected]>
cambios

b6bd77bd07373b3821a55ef715ed7008322f937e authored over 11 years ago by joanhey <[email protected]>
Merge pull request #1 from Ashrey/master

Eliminada dependencia de Util

6384035c7b26a6b155288f5af2e69555390f473f authored over 11 years ago by joanhey <[email protected]>
Eliminada dependencia de Util

65a417d01d751184e2e1cfb6d75e041fc7372145 authored over 11 years ago by Alberto Berroteran <[email protected]>
Cambio en get()

Si buscamos por llave primaria, sólo puede existir una. No es necesario usar limit.

1de254a3ccedd942350bd273efaf106cf555c9d0 authored over 11 years ago by joanhey <[email protected]>
más cambios en LiteRecord

e6923ea7930a8408a4fe42cdb968b2c3c1650d40 authored over 11 years ago by joanhey <[email protected]>
cambios

2af3fb2e584950674c679ed20314768ce86ad557 authored over 11 years ago by joanhey <[email protected]>
más cambios en LiteRecord

c2d42777ba4d9fa60cf80e5558d00ba34e638831 authored over 11 years ago by joanhey <[email protected]>
cambios

e5126ca56ea08385c839ad2cfd553b15ffbc1a59 authored over 11 years ago by joanhey <[email protected]>
cambios

000cda8720a09ca81a63da69b1cb20355538d096 authored over 11 years ago by joanhey <[email protected]>
Tachado lo que esta listo

69cb2219a956f1d569b3b678b940e544b307f3cf authored over 11 years ago by joanhey <[email protected]>
Correccion de bug en metodo delete

215276a16781535a931cafee2421d916d6f2cd6d authored over 11 years ago by Emilio Silveira <[email protected]>
Corrección de bug

a098421599426dd19efb7f32f1877952c2ac7c10 authored over 11 years ago by Emilio Silveira <[email protected]>
-Reescrito ActiveRecord, esta clase tiene los ayudantes sql para find.

-Creada clase LiteRecord.
-Creada clase Paginator. Compatible con los partials paginators.

fd5f0c44466d87d968b907df5992ed87616d9613 authored over 11 years ago by Emilio Silveira <[email protected]>
Adicionada clase para metadata y querys especiales

7aba74f4a98e830822103addd27cf28970770d0a authored over 11 years ago by Emilio Silveira <[email protected]>
Eliminada vieja implementacion

204a72d84575492c31ca3057de2c8f97700fc321 authored over 11 years ago by Emilio Silveira <[email protected]>
Update README.md

0f30b237211f4fbd6f8166c1499332b13238e233 authored over 11 years ago by joanhey <[email protected]>
Update README.md

508887d56a6548bbadaa132a532693762804934e authored over 11 years ago by joanhey <[email protected]>
Update README.md

f211ac52adc95d598d33d304adb3932fe58491ad authored over 11 years ago by joanhey <[email protected]>
Update README.md

8059e0dca9fead225d03efa7e13f27490bdef3b3 authored over 11 years ago by joanhey <[email protected]>
Commit inicial

832535ec9179e1e754986459fb18bf506f2b4e17 authored over 11 years ago by Emilio Silveira <[email protected]>
Initial commit

92a17c2c20d0b09502dc820ae0219fd1c48e0429 authored over 11 years ago by Emilio Silveira <[email protected]>