Skip to content
#

phalcon-extension

Here are 2 public repositories matching this topic...

Language: All
Filter by language
cphalcon
tacxticx88
tacxticx88 commented Jul 1, 2019

Phalcon 3.x

If the user tries to create a new behavior to duplicate records, the collection class can create unexpected errors,

Example of a dangerous collection:

class Robot extends Collection
{
	public $name;

	// This method will be triggered at each iteration on the records
	public function __clone()
	{
		$this->_id = new MongoId;
	}

	...
}

The clo

Loading…
You can’t perform that action at this time.