Coder Social home page Coder Social logo

spiffy-crud's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

0xpaul

spiffy-crud's Issues

CrudRoute throws "No controller given" if controller is not specified under defaults

CrudRoute currently throws 'No controller given' if Controller was specified on the same level as route, i.e.

'route' => '/crud',
'controller' => 'MyController'

throws while

'route' => '/crud'
'defaults' => array(
     'controller' => 'MyController'
)

works.

Suggestion for fix line 80,81:

    $controller = isset($options['controller']) ? $options['controller'] : null;
    if (!$controller) $controller = isset($defaults['controller']) ? $defaults['controller'] : array();

AdapterInterface should reflect CRUD semantics

Hi,

I'm looking for a flexible zf2 CRUD module for RAD prototyping. Your module seems to be a perfect candidate for the job. I love the seperation of entity and model definition and the CrudManager with it's related sub managers.
I want to connect an EventStore with a CRUD-ish middleware via CQRS. A CqrsAdapter should delegate CreateEntity, UpdateEntity and RemoveEntity commands to a command bus and in the simplest case generic command handlers would handle them and pass them to event sourced entities. This is the theory, but I've a problem with the AdapterInterface. It looks like it is designed to support doctrine or an ORM in general. The CRUD information get lost cause the AdapterInterface only defines a persist method. Seperated create/insert and update methods would be helpful, otherwise I need to introduce an idntity map or ask my read model if it already knows the entity.

What do you think? Would it be ok to change it? I can do it and send you a pull request. Would be much faster than write my own module but maybe it is a BC break if other adapters exist outside your module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.