nsossonko

Results issues of nsossonko

Essentially, objects should be allowed at the query parameter level because it is perfectly legal to have a multi-dimensional array in a query parameter. Eg: ?q[first][]=First&q[last][]=Last The spec already supports...

It's not possible to add constraints (ON UPDATE CASCADE, etc) to foreign keys with Phalcon\Db\AdapterInterface::addForeignKey. It accepts a Phalcon\Db\ReferenceInterface which does not have an "action" or similar parameter for constraints....

Model Foo has a bidirectional belongsTo/hasMany relationship with model BarBaz. In the relationship on Foo we aliased BarBaz as barBaz. If we try to save the model as follows: ```...

Hi, I am using Mysql and cannot get my primary keys to be skipped during create. In Mysql my primary keys are set to AUTO_INCREMENT. I call model->skipAttributes('id') in initialize,...

When a model is updated the beforeValidation method is not called **prior** to internal validation. Therefore, if a required field is not filled (or is filled with the wrong type),...

stale

Currently, specifying 'allowEmpty' => true in the options array for the Ip validator does nothing. It still fails.

Calling refresh on a model that uses non-numeric IDs is broken and throws a PDO error (presumably because the ID is not quote-enclosed). EG: ``` php class StringId extends \Phalcon\Mvc\Model...

stale

Code: ``` php class Parent extends \Phalcon\Mvc\Model { public $id; public function initialize() { $this->hasMany('id', 'Child', 'parent', array( 'foreignKey' => array('action' => Relation::ACTION_RESTRICT), 'alias' => 'relatedchilds')); } } class Child...

Code sample: ``` php class Sample extends \Phalcon\Mvc\Model { public $id; public $intVal; } $sample = Sample::findFirst(); $sample->intVal = 'a'; echo json_encode($sample->getChangedFields()) . "; // This will return an empty...

stale

Code: ``` php class Parent extends \Phalcon\Mvc\Model { public $id; } class Child extends \Phalcon\Mvc\Model { public $id; public $parentId; public function initialize() { $this->belongsTo('parentId', 'Parent', 'id', array('alias' => 'parent'));...

stale