0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【doctrine】Specを使用してデフォルトで条件の入ったdoctrineのオブジェクトを出力したい

Posted at

環境

php7
Symfony3

そもそもSpecとはなんぞや

Doctrine-Specification/0-usage.md at 2.x · Happyr/Doctrine-Specification

doctrineのクエリよりも簡素に書けるよ―というライブラリらしい。
全然慣れない

首題について

$spec = Spec::andX(
    Spec::isNotNull('hoge'),
);

これだけで済んだ、、、
まあ慣れなんですかね、、、
ジョインして間もないので解決しても腑に落ちないところはある。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?