Skip to content

Conversation

@ryanmitchell
Copy link
Contributor

@ryanmitchell ryanmitchell commented Jun 17, 2024

This PR allows blueprints and field sets to be run in split repository mode, ie the blueprints could be eloquent driven and field sets file driven, or vice versa.

It also fixes some of the code introduced in #300 to handle methods that were missed initially.

@ryanmitchell ryanmitchell changed the title Handle split blueprint repository in filesIn method Allow blueprints and field sets to be split repository Jun 17, 2024
namespace Statamic\Eloquent;

use Illuminate\Foundation\Console\AboutCommand;
use JetBrains\PhpStorm\Deprecated;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a mistake. (You started using PhpStorm? 😄 )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definitely a mistake.

i told you i'd give it a go... i don't hate it as much as i thought i would :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it added it when i added @deprecated in a comment

@jasonvarga
Copy link
Member

This is not push-back at all, but I'm just curious why someone would want blueprints in the db and fieldsets in files (and vice-versa).

@ryanmitchell
Copy link
Contributor Author

So the use case for TV2 is form blueprints only in the DB, other blueprints and fieldsets as file.

@jasonvarga
Copy link
Member

Ah yeah I remember that conversation. Thanks.

@jasonvarga jasonvarga merged commit b85b882 into statamic:master Jun 18, 2024
@ryanmitchell ryanmitchell deleted the fix/bug-in-split-blueprint-repository branch June 18, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants