litecqrs-php icon indicating copy to clipboard operation
litecqrs-php copied to clipboard

Tests for CRUD Plugin

Open beberlei opened this issue 12 years ago • 1 comments

beberlei avatar Aug 13 '12 08:08 beberlei

On the method

 protected function applyResourceCreated(ResourceCreatedEvent $event)
    {
        $properties = array_keys(get_class_vars($this));

        foreach ($event->data as $key => $value) {
            if (in_array($key, $properties)) {
                $this->$key = $value;
            }
        }
    }

get_class_vars($this) should be get_object_vars($this)

There is Warning: get_class_vars() expects parameter 1 to be string, object given

dkorsak avatar Feb 28 '15 15:02 dkorsak