public function make( array $data = null )
    {

        if( !$this->makeableSafetyCheck() ) {
            return null;
        }

        $entity = $this->entityFactory();
        if( $data !== null ) {
            $entity->set(
                $data,
                // as data is a array the second argument doesn't make much sense here
                null,
                // set the inital values and see that the correct input validation happens
                $entity->inputValidate
             );
        }
        return $entity;

    }
public function make( array $data = null )
    {

        if( !$this->makeableSafetyCheck() ) {
            return null;
        }

        $entity = $this->entityFactory();
        if( $data !== null ) {
            $entity->set(
                $data,
                // as data is a array the second argument doesn't make much sense here
                null,
                // set the inital values and see that the correct input validation happens
                $entity->inputValidate
             );
        }
        return $entity;

    }
public function make ( array $ data = null ) { if ( ! $ this -> makeableSafetyCheck ( ) ) { return null ; } $ entity = $ this -> entityFactory ( ) ; if ( $ data !== null ) { $ entity -> set ( $ data , // as data is a array the second argument doesn't make much sense here null , // set the inital values and see that the correct input validation happens $ entity -> inputValidate ) ; } return $ entity ; }
Returns a new entity of the correct type.
@return Base
Returns a new entity of the correct type .